How to switch cases while using lodash in react native

Viewed 95

I have written the following code in which I have used lodash to show the first letter of a word in capital but there to other words where all the words will we in capital for eg. 1. Private Limited and 2. HUF) in this in Private Limited I want to show Private "P" as capital and in HUF I want to show "HUF" all in capital, so can use please tell how can I use cases in this to check when to use which lodash property.

<View style={[KycDetailsStyles.basicContainer, KycDetailsStyles.infoContainer]}>
      {renderCompanyInfo(
        appStrings.natureOfCompanyStrings.typeOfCompany,
        props.customerData.companyType ? _.upperFirst(props.customerData.companyType) : '-',
      )}
</View>
0 Answers
Related