String#classify()

classify (str) Stringpublic

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

Returns the UpperCamelCase form of a string.

'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
doc_EmberJs
2016-11-30 16:53:28
Comments
Leave a Comment

Please login to continue.