coderef

Typed arrays (initial support)Baseline · Widely available

Typed arrays are ordered lists of JavaScript values, where all values are of the same numerical type, such as 8-bit integers or 32-bit floating point numbers.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Jul 29, 2015. Widely available since Jan 29, 2018.

Browser support

DesktopChrome
1–6Not supported
7+Supportedsince Oct 19, 2010
Current: 155
Edge
12+Supportedsince Jul 29, 2015
Current: 154
Firefox
1–3.6Not supported
4+Supportedsince Mar 22, 2011
Current: 157
Safari
1–5Not supported
5.1+Supportedsince Jul 20, 2011
Current: 27
MobileChrome Android
18+Supportedsince Jun 27, 2012
Current: 155
Firefox Android
4+Supportedsince Mar 29, 2011
Current: 157
Safari iOS
1–4Not supported
4.2+Supportedsince Nov 22, 2010
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: ArrayBuffer.

Feature detection

JS · check before using
// Syntax can't be tested with an if-statement — an unsupported
// browser fails to parse the whole script. Either transpile for older
// targets (e.g. Babel/TypeScript/esbuild), or probe in isolation:
let supported = true;
try {
  new Function("/* code that uses the syntax */");
} catch {
  supported = false;
}

This is a language syntax feature.

Sub-features

Support for each part of the feature (82). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
ArrayBuffer71245.11844.2
ArrayBuffer.@@species51134810514810
ArrayBuffer.ArrayBuffer71245.11844.2
ArrayBuffer.byteLength71245.11844.2
ArrayBuffer.isView321229732297
ArrayBuffer.slice1712125.118146
DataView912155.118155
DataView.DataView912155.118155
DataView.buffer912155.118155
DataView.byteLength912155.118155
DataView.byteOffset912155.118155
DataView.getFloat32912155.118155
DataView.getFloat64912155.118155
DataView.getInt16912155.118155
DataView.getInt32912155.118155
DataView.getInt8912155.118155
DataView.getUint16912155.118155
DataView.getUint32912155.118155
DataView.getUint8912155.118155
DataView.setFloat32912155.118155
Show 62 more
Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
DataView.setFloat64912155.118155
DataView.setInt16912155.118155
DataView.setInt32912155.118155
DataView.setInt8912155.118155
DataView.setUint16912155.118155
DataView.setUint32912155.118155
DataView.setUint8912155.118155
Float32Array71245.11844.2
Float32Array.Float32Array71245.11844.2
Float32Array.Float32Array.constructor_without_parameters712555.118555
Float32Array.Float32Array.iterable_allowed39145210395210
Float64Array71245.11844.2
Float64Array.Float64Array71245.11844.2
Float64Array.Float64Array.constructor_without_parameters712555.118555
Float64Array.Float64Array.iterable_allowed39145210395210
Int16Array71245.11844.2
Int16Array.Int16Array71245.11844.2
Int16Array.Int16Array.constructor_without_parameters712555.118555
Int16Array.Int16Array.iterable_allowed39145210395210
Int32Array71245.11844.2
Int32Array.Int32Array71245.11844.2
Int32Array.Int32Array.constructor_without_parameters712555.118555
Int32Array.Int32Array.iterable_allowed39145210395210
Int8Array71245.11844.2
Int8Array.Int8Array71245.11844.2
Int8Array.Int8Array.constructor_without_parameters712555.118555
Int8Array.Int8Array.iterable_allowed39145210395210
TypedArray71245.11844.2
TypedArray.@@species51134810514810
TypedArray.BYTES_PER_ELEMENT71245.11844.2
TypedArray.buffer71245.11844.2
TypedArray.byteLength71245.11844.2
TypedArray.byteOffset71245.11844.2
TypedArray.constructor_without_parameters712555.118555
TypedArray.index_properties_not_consulting_prototype712255.118255
TypedArray.iterable_in_constructor39145210395210
TypedArray.join45123710453710
TypedArray.length71245.11844.2
TypedArray.name71245.11844.2
TypedArray.named_properties712305.118305
TypedArray.reverse45123710453710
TypedArray.set71245.11844.2
TypedArray.slice45123810453810
TypedArray.sort45124610454610
TypedArray.subarray71245.11844.2
TypedArray.toString712515.118515
Uint16Array71245.11844.2
Uint16Array.Uint16Array71245.11844.2
Uint16Array.Uint16Array.constructor_without_parameters712555.118555
Uint16Array.Uint16Array.iterable_allowed39145210395210
Uint32Array71245.11844.2
Uint32Array.Uint32Array71245.11844.2
Uint32Array.Uint32Array.constructor_without_parameters712555.118555
Uint32Array.Uint32Array.iterable_allowed39145210395210
Uint8Array71245.11844.2
Uint8Array.Uint8Array71245.11844.2
Uint8Array.Uint8Array.constructor_without_parameters712555.118555
Uint8Array.Uint8Array.iterable_allowed39145210395210
Uint8ClampedArray71245.11844.2
Uint8ClampedArray.Uint8ClampedArray71245.11844.2
Uint8ClampedArray.Uint8ClampedArray.constructor_without_parameters712555.118555
Uint8ClampedArray.Uint8ClampedArray.iterable_allowed39145210395210