Extract the element type from an array or tuple.
Array or tuple type
Resolves to the contained element type of readonly or mutable arrays. Returns never for non-array inputs.
never
type Arr = number[];type Elem = ElementOf< Arr >; // number Copy
type Arr = number[];type Elem = ElementOf< Arr >; // number
Extract the element type from an array or tuple.