String#camelize()

camelize (str) Stringpublic

Defined in packages/ember-runtime/lib/system/string.js:263

Returns the lowerCamelCase form of a string.

'innerHTML'.camelize();          // 'innerHTML'
'action_name'.camelize();        // 'actionName'
'css-class-name'.camelize();     // 'cssClassName'
'my favorite items'.camelize();  // 'myFavoriteItems'
'My Favorite Items'.camelize();  // 'myFavoriteItems'
'private-docs/owner-invoice'.camelize(); // 'privateDocs/ownerInvoice'

Parameters:

str String
The string to camelize.

Returns:

String
the camelized string.
doc_EmberJs
2016-11-30 16:53:28
Comments
Leave a Comment

Please login to continue.