Skip to content

capitalizeFirst JavaScriptDart

Converts the first letter of the entire string to uppercase and returns.

Parameters

  • str::string

Returns

string

Examples

javascript
capitalizeFirst('abcd'); // Returns 'Abcd'

Released under the MIT License