Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
The length accessor property of TypedArray instances returns the length (in elements) of this typed array.
The length property is an accessor property whose set accessor function is undefined, meaning that you can only read this property. If the typed array is length-tracking, then its length depends on the length of the underlying buffer, and may change if the buffer is resized. Otherwise, the value is established when the typed array is constructed and cannot be changed. Whether length-tracking or not, the length becomes 0 if the underlying buffer is resized such that the viewed range is no longer valid.
| ECMAScript® 2027 Language Specification # sec-get-%typedarray%.prototype.length |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Sep 25, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.