snakeCase source npm
_.snakeCase([string=''])
Converts string
to snake case.
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'