The TypedArray.prototype property represents the prototype for TypedArray constructors.
Property attributes of TypedArray.prototype
| |
|---|---|
| Writable | no |
| Enumerable | no |
| Configurable | no |
TypedArray instances inherit from TypedArray.prototype. You can use the constructor's prototype object to add properties or methods to all TypedArray instances, where TypedArray is one of the typed array types.
See also the description about TypedArray for more information about inheritance.
TypedArray.prototype.constructorTypedArray.prototype.buffer Read only
ArrayBuffer referenced by the typed array. Fixed at construction time and thus read only.TypedArray.prototype.byteLength Read only
TypedArray.prototype.byteOffset Read only
ArrayBuffer. Fixed at construction time and thus read only.
TypedArray.prototype.length Read only
TypedArray.prototype.copyWithin()Array.prototype.copyWithin().TypedArray.prototype.entries()Array Iterator object that contains the key/value pairs for each index in the array. See also Array.prototype.entries().TypedArray.prototype.every()Array.prototype.every().TypedArray.prototype.fill()Array.prototype.fill().TypedArray.prototype.filter()Array.prototype.filter().TypedArray.prototype.find()undefined if not found. See also Array.prototype.find().TypedArray.prototype.findIndex()Array.prototype.findIndex().TypedArray.prototype.forEach()Array.prototype.forEach().TypedArray.prototype.includes()
true or false as appropriate. See also Array.prototype.includes().TypedArray.prototype.indexOf()Array.prototype.indexOf().TypedArray.prototype.join()Array.prototype.join().TypedArray.prototype.keys()Array Iterator that contains the keys for each index in the array. See also Array.prototype.keys().TypedArray.prototype.lastIndexOf()Array.prototype.lastIndexOf().TypedArray.prototype.map()Array.prototype.map().TypedArray.prototype.move() Unimplemented
TypedArray.prototype.copyWithin().TypedArray.prototype.reduce()Array.prototype.reduce().TypedArray.prototype.reduceRight()Array.prototype.reduceRight().TypedArray.prototype.reverse()Array.prototype.reverse().TypedArray.prototype.set()TypedArray.prototype.slice()Array.prototype.slice().TypedArray.prototype.some()Array.prototype.some().TypedArray.prototype.sort()Array.prototype.sort().TypedArray.prototype.subarray()TypedArray.prototype.values()Array Iterator object that contains the values for each index in the array. See also Array.prototype.values().TypedArray.prototype.toLocaleString()Array.prototype.toLocaleString().TypedArray.prototype.toString()Array.prototype.toString().TypedArray.prototype[@@iterator]()Array Iterator object that contains the values for each index in the array.| Specification | Status | Comment |
|---|---|---|
| ECMAScript 2015 (6th Edition, ECMA-262) The definition of 'TypedArray prototype' in that specification. | Standard | Initial definition. |
| ECMAScript Latest Draft (ECMA-262) The definition of 'TypedArray prototype' in that specification. | Draft |
| Desktop | ||||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
| Basic support | 7 | Yes | 4 | 10 | 11.6 | 5.1 |
| Mobile | |||||||
|---|---|---|---|---|---|---|---|
| Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
| Basic support | 4 | Yes | Yes | 4 | 11.6 | 4.2 | Yes |
| Server | |
|---|---|
| Node.js | |
| Basic support | Yes |
© 2005–2018 Mozilla Developer Network and individual 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/prototype