UNPKG

arraybuffer.prototype.transfertofixedlength

Version:

ES Proposal spec-compliant shim for ArrayBuffer.prototype.transferToFixedLength

8 lines (5 loc) 221 B
'use strict'; var implementation = require('./implementation'); module.exports = function getPolyfill() { return (typeof ArrayBuffer === 'function' && ArrayBuffer.prototype.transferToFixedLength) || implementation; };