Type alias Tail<Input>

Tail<Input>: Second<HeadAndTail<Input>>

Last values of an ArrayLike (omitting the first).

Remarks

Type of the last items of an ArrayLike, excluding the first item in said ArrayLike.

Example

const array = ["🟢", "🟩", "💚"];
const tail: Tail<typeof array> = ["🟩", "💚"];

See

Type Parameters

  • Input extends ArrayLike

    Type of the array to get the tail.