can.camelize

  • function
 

Capitalize the first letter after each hyphen in a string.

can.camelize(str)

Parameters

  1. str {String}

    The string to camelize.

Returns

{String}

The string with the first letter after each hyphen capitalized.

can.camelize('hello-world'); //-> Returns: 'helloWorld'