Last value of an ArrayLike.
ArrayLike
Type of the last character of a string or the last element of an array.
const array = ["🟢", "🟩", "💚"];const last: Last<typeof array> = "💚"; Copy
const array = ["🟢", "🟩", "💚"];const last: Last<typeof array> = "💚";
The input ArrayLike.
Last value of an
ArrayLike
.Remarks
Type of the last character of a string or the last element of an array.
Example
See