Function snakeCase

  • Converts a string to snake_case

    Example

    snakeCase("camelCase");
    => "camel_case"

    Parameters

    • a: string

      A string

    • Optional separator: string

      An optional separator to use instead of underscore

    Returns string

Generated using TypeDoc