Initial value of an ArrayLike.
ArrayLike
Given a type argument (an ArrayLike), this returns the type of the item in index 0.
0
const array = ["🟢", "🟩", "💚"];const head: Head<typeof array> = "🟢"; Copy
const array = ["🟢", "🟩", "💚"];const head: Head<typeof array> = "🟢";
ArrayLike value (such as Array or string).
Array
string
Initial value of an
ArrayLike
.Remarks
Given a type argument (an
ArrayLike
), this returns the type of the item in index0
.Example
See