MCPcopy Create free account
hub / github.com/TruthHun/BookStack / any

Function any

static/word2md/mammoth.browser.js:4031–4038  ·  view source on GitHub ↗
(promises)

Source from the content-addressed store, hash-verified

4029module.exports = function(Promise) {
4030var SomePromiseArray = Promise._SomePromiseArray;
4031function any(promises) {
4032 var ret = new SomePromiseArray(promises);
4033 var promise = ret.promise();
4034 ret.setHowMany(1);
4035 ret.setUnwrap();
4036 ret.init();
4037 return promise;
4038}
4039
4040Promise.any = function (promises) {
4041 return any(promises);

Callers 1

mammoth.browser.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected