capitalizefirstletterofstring
v1.1.0
Published
Convert the First Letter of String to Capital letter. Supports only String values, will return Empty string for any other types.
Downloads
6
Maintainers
Readme
Capitalize-First-Letter-Of-String--npm
Convert the First Letter of String to Capital letter. Supports only String values, will return Empty string for any other types.
Installtion
npm install --save capitalizefirstletterofstring
Usage
var CapitalizeFirstLetterOfString = require('capitalizefirstletterofstring');
CapitalizeFirstLetterOfString(null) //=> ''
CapitalizeFirstLetterOfString(undefined) //=> ''b
CapitalizeFirstLetterOfString('hello world') //=> Hello world
License
MIT