Formats the given string in snake case fashion
输入字符串
Optional
配置选项
蛇形格式的字符串
snake('hello world') // -> 'hello_world'snake('va va-VOOM') // -> 'va_va_voom'snake('helloWord') // -> 'hello_world' Copy
snake('hello world') // -> 'hello_world'snake('va va-VOOM') // -> 'va_va_voom'snake('helloWord') // -> 'hello_world'
Formats the given string in snake case fashion