• Returns all elements in an array except for the first one

    Example

    tail([1, 2, 3]); // [2, 3]
    

    Type Parameters

    • T extends unknown[]

    Parameters

    • arr: T

    Returns T extends [unknown, ...(infer F)] ? F : T

Generated using TypeDoc