DEV Community 👩‍💻👨‍💻

Discussion on: Killer JavaScript One Liners

Collapse
 
fernaned profile image
Fernando Ed

I personally use this to capitalize:
str[0].toUpperCase() + str.substr(1)