decamelize (str) String
public
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.
Please login to continue.