String#decamelize()

decamelize (str) Stringpublic

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

Converts a camelized string into all lower case separated by underscores.

'innerHTML'.decamelize();           // 'inner_html'
'action_name'.decamelize();        // 'action_name'
'css-class-name'.decamelize();     // 'css-class-name'
'my favorite items'.decamelize();  // 'my favorite items'

Parameters:

str String
The string to decamelize.

Returns:

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

Please login to continue.