Download node_modules/async/internal/onlyOnce.js from mikmc5/aistats: direct link, hf CLI and curl.
- Browser
- Download file 360 Bytes
-
https://huggingface.co/spaces/mikmc5/aistats/resolve/main/node_modules/async/internal/onlyOnce.js
- Command line
-
hf download hf://spaces/mikmc5/aistats/node_modules/async/internal/onlyOnce.js
-
curl -L -o onlyOnce.js https://huggingface.co/spaces/mikmc5/aistats/resolve/main/node_modules/async/internal/onlyOnce.js
360 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { | |
| value: true | |
| }); | |
| exports.default = onlyOnce; | |
| function onlyOnce(fn) { | |
| return function (...args) { | |
| if (fn === null) throw new Error("Callback was already called."); | |
| var callFn = fn; | |
| fn = null; | |
| callFn.apply(this, args); | |
| }; | |
| } | |
| module.exports = exports.default; |