- Source:
- string/naming.js
Methods
-
<static> camelCase(str)
-
Convert a string to camel case, 'fooBar'
Parameters:
Name Type Description str
String - Source:
- string/camelCase.js
Returns:
- Type
- String
-
<static> kebabCase(str)
-
Convert a string to kebab case, 'foo-bar'
Parameters:
Name Type Description str
String - Source:
- string/kebabCase.js
Returns:
- Type
- String
-
<static> pascalCase(str)
-
Convert a string to pascal case, 'fooBar'
Parameters:
Name Type Description str
String - Source:
- string/pascalCase.js
Returns:
- Type
- String
-
<static> snakeCase(str)
-
Convert a string to snake case, 'foo_bar'
Parameters:
Name Type Description str
String - Source:
- string/snakeCase.js
Returns:
- Type
- String