• Splits string by separator.

    Note: This method is based on String#split.

    Parameters

    • string: undefined | null | string

      The string to split.

    • Optionalseparator: string | RegExp

      The separator pattern to split by.

    • Optionallimit: number

      The length to truncate results to.

    Returns string[]

    Returns the new array of string segments.

  • Parameters

    • string: undefined | null | string
    • index: string | number
    • guard: object

    Returns string[]

    _.split