Type alias Tail<Input>

Tail<Input>: HeadAndTail<Input>[1]

Last values of an array or string (omitting the first).

Example

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

Type Parameters

  • Input extends ArrayLike<unknown>