Download node_modules/arraybuffer.prototype.slice/shim.js from metarm/QMetaRam: direct link, hf CLI and curl.
- Browser
- Download file 395 Bytes
-
https://huggingface.co/metarm/QMetaRam/resolve/main/node_modules/arraybuffer.prototype.slice/shim.js
- Command line
-
hf download hf://metarm/QMetaRam/node_modules/arraybuffer.prototype.slice/shim.js
-
curl -L -o shim.js https://huggingface.co/metarm/QMetaRam/resolve/main/node_modules/arraybuffer.prototype.slice/shim.js
395 Bytes
| ; | |
| var define = require('define-properties'); | |
| var getPolyfill = require('./polyfill'); | |
| module.exports = function shimArrayBufferSlice() { | |
| if (typeof ArrayBuffer === 'function') { | |
| var polyfill = getPolyfill(); | |
| define( | |
| ArrayBuffer.prototype, | |
| { slice: polyfill }, | |
| { slice: function () { return ArrayBuffer.prototype.slice !== polyfill; } } | |
| ); | |
| } | |
| return polyfill; | |
| }; | |