uncapitalize

Uncapitalize the first character of a string.

Usage

var uncapitalize = require( '@stdlib/string/base/uncapitalize' );

uncapitalize( str )

Uncapitalizes the first character of a string.

var out = uncapitalize( 'Last man standing' );
// returns 'last man standing'

out = uncapitalize( 'Hidden Treasures' );
// returns 'hidden Treasures'

Examples

var uncapitalize = require( '@stdlib/string/base/uncapitalize' );

var out = uncapitalize( 'Last man standing' );
// returns 'last man standing'

out = uncapitalize( 'Presidential election' );
// returns 'presidential election'

out = uncapitalize( 'JavaScript' );
// returns 'javaScript'

out = uncapitalize( 'Hidden Treasures' );
// returns 'hidden Treasures'
Did you find this page helpful?