2

I am trying to capitalize only 1st letter. for Example: FIRST NAME converted to First name

Using below code :

 1. textTransform: 'capitalize', // Result is  First Name
 2. I tried to use import startCase from 'lodash.startcase';
          and used startCase('FIRST NAME') // Result is  First Name

Please let me know if there is any way to implement this

Desert Eagle
  • 191
  • 14
  • 1
    Does this answer your question? [How do I make the first letter of a string uppercase in JavaScript?](https://stackoverflow.com/questions/1026069/how-do-i-make-the-first-letter-of-a-string-uppercase-in-javascript) – Cyrus Jul 14 '22 at 23:01
  • I don't see any code below the line *"below code:"*... – vsync Jul 17 '22 at 21:17

1 Answers1

2

Capitalize with css

Capitalize with JavaScript

Michael Štekrt
  • 406
  • 3
  • 8