Function split

  • Splits a string into an array of substrings based on a separator

    Parameters

    • str: string

      string to split

    • separator: string | RegExp

      separator to split the string by

    • Optional limit: number

      maximum number of substrings to return

    Returns string[]

    an array of substrings

Generated using TypeDoc