The TypedArray.name property represents a string value of the typed array constructor name.
The TypedArray.name property represents a string value of the typed array constructor name.
Property attributes of TypedArray.name
| |
|---|---|
| Writable | no |
| Enumerable | no |
| Configurable | no |
TypedArray objects differ from each other in the number of bytes per element and in the way the bytes are interpreted. The name property describes what data type the array consists of. It has three parts:
Int for integer, Uint for unsigned integer, or Float for floating point.BigInt values instead, and the first part is prefixed with "Big", becoming either BigInt or BigUint.Array or ClampedArray. Uint8ClampedArray has details about clamped arrays.Int8Array.name; // "Int8Array" Uint8Array.name; // "Uint8Array" Uint8ClampedArray.name; // "Uint8ClampedArray" Int16Array.name; // "Int16Array" Uint16Array.name; // "Uint16Array" Int32Array.name; // "Int32Array" Uint32Array.name; // "Uint32Array" Float32Array.name; // "Float32Array" Float64Array.name; // "Float64Array" BigInt64Array.name; // "BigInt64Array" BigUint64Array.name; // "BigUint64Array"
| Desktop | Mobile | Server | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | Deno | Node.js | |
name |
7 |
12 |
4 |
10 |
11.6 |
5.1 |
4 |
18 |
4 |
12 |
4.2 |
1.0 |
1.0 |
0.10.0 |
© 2005–2022 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/name