Function toSnakeCase

  • Convert a string to snake-case.

    Parameters

    • x: string

      a string

    • re: RegExp = null

      word seperator pattern [/[^0-9A-Za-z]+/g]

    Returns string

    snake_case

Generated using TypeDoc