• Returns all but the first (or last) count of items from an array, or the fallback if list is null or undefined.

    Type Parameters

    • T

    Parameters

    • fallback: T[]

    Returns ((count) => ((list) => T[]))

      • (count): ((list) => T[])
      • Parameters

        • count: number

        Returns ((list) => T[])

          • (list): T[]
          • Parameters

            • list: T[]

            Returns T[]

    Example

    drop([])(4)([1, 2, 3, 4, 5, 6]);
    // => [5, 6]

    drop([])(4)(undefined);
    // => []

Generated using TypeDoc