The ArrayBuffer.prototype
property represents the prototype for the ArrayBuffer
object.
Property attributes of ArrayBuffer.prototype
| |
---|---|
Writable | no |
Enumerable | no |
Configurable | no |
ArrayBuffer
instances inherit from ArrayBuffer.prototype
. As with all constructors, you can change the constructor's prototype object to make changes to all ArrayBuffer
instances.
ArrayBuffer
constructor.ArrayBuffer.prototype.byteLength
Read only
ArrayBuffer.prototype.slice()
ArrayBuffer
whose contents are a copy of this ArrayBuffer
's bytes from begin
, inclusive, up to end
, exclusive. If either begin
or end
is negative, it refers to an index from the end of the array, as opposed to from the beginning.Specification | Status | Comment |
---|---|---|
ECMAScript 2015 (6th Edition, ECMA-262) The definition of 'ArrayBuffer.prototype' in that specification. | Standard | Initial definition. |
ECMAScript Latest Draft (ECMA-262) The definition of 'ArrayBuffer.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/ArrayBuffer/prototype