Function split

  • Split string by a given separator into substrings.

    Parameters

    • x: string

      a string

    • Optional separator: string | RegExp

      separator string or regular expression

    • Optional limit: number

      maximum number of substrings

    Returns string[]

    substrings

Generated using TypeDoc