length
const arr = new Uint8Array([1, 2, 3]); arr.length; // 3
length returns the number of elements in the typed array.
Access the length property to get the number of elements in a TypedArray.