Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 552 Bytes

snakeCase.md

File metadata and controls

38 lines (30 loc) · 552 Bytes

piupiu.snakeCase(input)

Return a snake-cased input.

Source

Since

0.1.0

Arguments

input (string)

Returns

(string): Returns snake-cased input.

Example

piupiu.snakeCase('Toto'); 
// 'toto'
piupiu.camelCase('ToTo'); 
// 'to_to'
piupiu.camelCase('to To'); 
// 'to_to'
piupiu.camelCase(0); 
// undefined'
piupiu.camelCase(null); 
// undefined'