can.capitalize

  • function
 

Capitalize the first letter of a string. can.capitalize('candy is fun!'); //-> Returns: 'Candy is fun!'

can.capitalize(str)

Parameters

  1. str {String}

    The string to capitalize.

Returns

{String}

The string with the first letter capitalized.