Appearance
function snakeCase(str: string): string
Transforms a sequence of words into snake case.
str.snakeCase('hey') // 'hey' str.snakeCase('j S o N') // 'j_s_o_n' str.snakeCase('j_S_o_N') // 'j_s_o_n' str.snakeCase('j-S-o-N') // 'j_s_o_n'