Initial values of an ArrayLike (omitting the last).
ArrayLike
Given a type argument (an ArrayLike), this returns the type of the items from the start of the ArrayLike until the before to last item.
const array = ["🟢", "🟩", "💚"];const initial: Initial<typeof array> = ["🟢", "🟩"]; Copy
const array = ["🟢", "🟩", "💚"];const initial: Initial<typeof array> = ["🟢", "🟩"];
ArrayLike value (such as Array or string).
Array
string
Initial values of an
ArrayLike
(omitting the last).Remarks
Given a type argument (an
ArrayLike
), this returns the type of the items from the start of theArrayLike
until the before to last item.Example
See