First value of an ArrayLike.
Type of the first item of an ArrayLike, mainly here to avoid magic numbers.
ArrayLike
const array = ["🟢", "🟩", "💚"];const first: First<typeof array> = "🟢"; Copy
const array = ["🟢", "🟩", "💚"];const first: First<typeof array> = "🟢";
The input ArrayLike.
First value of an ArrayLike.
Remarks
Type of the first item of an
ArrayLike
, mainly here to avoid magic numbers.Example
See