Spaces:
Running
Running
Download 731ai/node_modules/core-js/internals/array-buffer-is-detached.js from u11310019/interactive-multi-web: direct link, hf CLI and curl.
- Browser
- Download file 513 Bytes
-
https://huggingface.co/spaces/u11310019/interactive-multi-web/resolve/main/731ai/node_modules/core-js/internals/array-buffer-is-detached.js
- Command line
-
hf download hf://spaces/u11310019/interactive-multi-web/731ai/node_modules/core-js/internals/array-buffer-is-detached.js
-
curl -L -o array-buffer-is-detached.js https://huggingface.co/spaces/u11310019/interactive-multi-web/resolve/main/731ai/node_modules/core-js/internals/array-buffer-is-detached.js
513 Bytes
| ; | |
| var globalThis = require('../internals/global-this'); | |
| var NATIVE_ARRAY_BUFFER = require('../internals/array-buffer-basic-detection'); | |
| var arrayBufferByteLength = require('../internals/array-buffer-byte-length'); | |
| var DataView = globalThis.DataView; | |
| module.exports = function (O) { | |
| if (!NATIVE_ARRAY_BUFFER || arrayBufferByteLength(O) !== 0) return false; | |
| try { | |
| // eslint-disable-next-line no-new -- thrower | |
| new DataView(O); | |
| return false; | |
| } catch (error) { | |
| return true; | |
| } | |
| }; | |