Converts a string to snake_case. Handles various separators and case transitions.
snakeCase('helloWorld');// => 'hello_world'snakeCase('HelloWorldTest');// => 'hello_world_test' Copy
snakeCase('helloWorld');// => 'hello_world'snakeCase('HelloWorldTest');// => 'hello_world_test'
String to convert
snake_cased string
Converts a string to snake_case. Handles various separators and case transitions.
Example