• Splits a string using separator, or returns the fallback if x is null or undefined.

    Parameters

    • fallback: string[]

    Returns ((separator) => ((x) => string[]))

      • (separator): ((x) => string[])
      • Parameters

        • separator: string

        Returns ((x) => string[])

          • (x): string[]
          • Parameters

            • x: string

            Returns string[]

    See

    split

    Example

    split(["fallback"])(',')('3,6,9')
    // => ["3", "6", "9"]

    split(["fallback"])(',')(undefined)
    // => ["fallback"]

Generated using TypeDoc