camelize (str) String
public
Returns the lowerCamelCase form of a string.
1 2 3 4 5 6 | '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.
Please login to continue.