| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/of | [Back] [Original] |
Get to know MDN better
const int16array = Int16Array.of("10", "20", "30", "40", "50");
console.log(int16array);
// : Int16Array [10, 20, 30, 40, 50]
TypedArray.of()
TypedArray.of(element1)
TypedArray.of(element1, element2)
TypedArray.of(element1, element2, /* , */ elementN)
TypedArray
Int8ArrayUint8ArrayUint8ClampedArrayInt16ArrayUint16ArrayInt32ArrayUint32ArrayFloat16ArrayFloat32ArrayFloat64ArrayBigInt64ArrayBigUint64Array Array.of() Array.of() TypedArray.of()
TypedArray.of() this TypedArray.of() TypeError Array.of() Array TypedArray.of() [[Set]] Array.of() [[DefineOwnProperty]] Proxy handler.set() handler.defineProperty() Uint8Array.of(1); // Uint8Array [ 1 ]
Int8Array.of("1", "2", "3"); // Int8Array [ 1, 2, 3 ]
Float32Array.of(1, 2, 3); // Float32Array [ 1, 2, 3 ]
Int16Array.of(undefined); // Int16Array [ 0 ]
| ECMAScript 2027 LanguageSpecification # sec-%typedarray%.of |
| Web Proxy Viewer | New URL | Original Page |