_.snakeCase([string=''])
Converts string
to snake case.
Since
3.0.0
Arguments
-
[string='']
(string): The string to convert.
Returns
(string): Returns the snake cased string.
Example
_.snakeCase('Foo Bar'); // => 'foo_bar' _.snakeCase('fooBar'); // => 'foo_bar' _.snakeCase('--FOO-BAR--'); // => 'foo_bar'
Please login to continue.