• Converts a string to snake case.

    Parameters

    • str: string

      the input string

    Returns string

    the string converted to snake case

    Example

    console.log(snakeCase('Hello World')); // 'hello_world'
    

Generated using TypeDoc