• Returns a mapped array of items, or the fallback if list is null or undefined.

    Type Parameters

    • R

    Parameters

    • fallback: R[]

    Returns (<T>(fn) => ((list) => R[]))

      • <T>(fn): ((list) => R[])
      • Type Parameters

        • T

        Parameters

        Returns ((list) => R[])

          • (list): R[]
          • Parameters

            • list: T[]

            Returns R[]

    Example

    map([])(add(2))([3, 6, 9])
    // => [5, 8, 11]

    map([])(add(2))(undefined)
    // => []

Generated using TypeDoc