This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
upper-case-first with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Upper case the first character of a string.
Supports Unicode (non-ASCII characters) and non-string entities, such as objects with a
toString property, numbers and booleans. Empty values (
undefined) will result in an empty string.
npm install upper-case-first --save
var upperCaseFirst = require('upper-case-first') upperCaseFirst(null) //=> "" upperCaseFirst('string') //=> "String"
Includes a TypeScript definition.