Sha256: 7862f36925aba0df2b253c760a8cfb9018ec3f79c812ca30496c38dd5352fe09
Contents?: true
Size: 531 Bytes
Versions: 27
Compression:
Stored size: 531 Bytes
Contents
'use strict'; var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var callBound = require('call-bind/callBound'); var $typedArrayBuffer = callBound('TypedArray.prototype.buffer', true); var isTypedArray = require('is-typed-array'); // node <= 0.10, < 0.11.4 has a nonconfigurable own property instead of a prototype getter module.exports = $typedArrayBuffer || function typedArrayBuffer(x) { if (!isTypedArray(x)) { throw new $TypeError('Not a Typed Array'); } return x.buffer; };
Version data entries
27 entries across 27 versions & 2 rubygems