Type alias Initial<Input>

Initial<Input>: InitialAndLast<Input>[0]

Initial values of an array or string (omitting the last).

Example

const array = ["🟢", "🟩", "💚"];
const initial: Initial<typeof array> = ["🟢", "🟩"];

Type Parameters

  • Input extends ArrayLike<unknown>