Spaces:
Sleeping
Sleeping
Download node_modules/bluebird/js/release/any.js from carpool-team/Carpool: direct link, hf CLI and curl.
- Browser
- Download file 421 Bytes
-
https://huggingface.co/spaces/carpool-team/Carpool/resolve/main/node_modules/bluebird/js/release/any.js
- Command line
-
hf download hf://spaces/carpool-team/Carpool/node_modules/bluebird/js/release/any.js
-
curl -L -o any.js https://huggingface.co/spaces/carpool-team/Carpool/resolve/main/node_modules/bluebird/js/release/any.js
421 Bytes
| ; | |
| module.exports = function(Promise) { | |
| var SomePromiseArray = Promise._SomePromiseArray; | |
| function any(promises) { | |
| var ret = new SomePromiseArray(promises); | |
| var promise = ret.promise(); | |
| ret.setHowMany(1); | |
| ret.setUnwrap(); | |
| ret.init(); | |
| return promise; | |
| } | |
| Promise.any = function (promises) { | |
| return any(promises); | |
| }; | |
| Promise.prototype.any = function () { | |
| return any(this); | |
| }; | |
| }; | |