• function

can.capitalize

 

Capitalize the first letter of a string.

can.capitalize(str)

Parameters

  1. str {String}

    The string to capitalize.

Returns

{String}

The string with the first letter capitalized.

   can.capitalize('candy is fun!'); //-> Returns: 'Candy is fun!'