• Returns all but the first item in an array, or the fallback list is null or undefined.

    Type Parameters

    • T

    Parameters

    • fallback: T[]

    Returns ((list) => T[])

      • (list): T[]
      • Parameters

        • list: T[]

        Returns T[]

    Example

    tail([])([3, 6, 9])
    // => [6, 9]

    tail([])(undefined)
    // => []

Generated using TypeDoc