Arrays & Tuples#

TypeScript provides typed arrays for homogeneous collections and tuples for fixed-length, mixed-type sequences. Both support readonly modifiers to prevent mutation.

Typed Arrays

Arrays with element type checking

Typed arrays enforce consistent element types