Function tail

  • Gets all but the first element of array.

    Type Parameters

    • T

    Parameters

    • array: T[]

      The array to query.

    Returns T[]

    Returns the slice of array.

    Since

    5.13.0

    Example

    tail([1, 2, 3])
    // => [2, 3]