@schlandower/ucfirst
v1.0.1
Published
Upper case first letter of string or take the first word of each array entry and uppercase the first letter.
Downloads
1
Maintainers
Readme
ucfirst
- [ ]
Uppercase first letter of the first word in a string, or uppercase the first letter on the the first word for each entry in an array. Example: require('@schlandower/ucfirst'); var str = 'this is the test string'; str.ucFirst(); Result: This is the test stringResult
str.split(' ').ucFirst().join(' '); Result: This Is The Test String