• Joins items in an array using separator, or returns the fallback if list is null or undefined.

    Parameters

    • fallback: string

    Returns ((separator) => (<T>(list) => string))

      • (separator): (<T>(list) => string)
      • Parameters

        • separator: string

        Returns (<T>(list) => string)

          • <T>(list): string
          • Type Parameters

            • T

            Parameters

            • list: T[]

            Returns string

    Example

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

    join('fallback')(',')(undefined)
    // => "fallback"

Generated using TypeDoc