classify (str) String
public
Returns the UpperCamelCase form of a string.
1 2 3 4 5 | 'innerHTML' .classify(); // 'InnerHTML' 'action_name' .classify(); // 'ActionName' 'css-class-name' .classify(); // 'CssClassName' 'my favorite items' .classify(); // 'MyFavoriteItems' 'private-docs/owner-invoice' .classify(); // 'PrivateDocs/OwnerInvoice' |
Parameters:
-
str
String
- the string to classify
Returns:
-
String
- the classified string
Please login to continue.