DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
JavaScript Capitalize First Letter
const capitalize = ([first, ...rest]) => first.toUpperCase() + rest.join("").toLowerCase();
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#JavaScript
#Capitalize
#First
#Letter
ADD COMMENT
Topic
COMMENT
Name
1+5 =
Submit