10 lines
334 B
JavaScript
10 lines
334 B
JavaScript
var typedArrayConstructor = require('../internals/typed-array-constructor');
|
|
|
|
// `Uint16Array` constructor
|
|
// https://tc39.github.io/ecma262/#sec-typedarray-objects
|
|
typedArrayConstructor('Uint16', 2, function (init) {
|
|
return function Uint16Array(data, byteOffset, length) {
|
|
return init(this, data, byteOffset, length);
|
|
};
|
|
});
|