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

Function some

static/word2md/mammoth.browser.js:8654–8663  ·  view source on GitHub ↗
(promises, howMany)

Source from the content-addressed store, hash-verified

8652};
8653
8654function some(promises, howMany) {
8655 if ((howMany | 0) !== howMany || howMany < 0) {
8656 return apiRejection("expecting a positive integer\u000a\u000a See http://goo.gl/MqrFmX\u000a");
8657 }
8658 var ret = new SomePromiseArray(promises);
8659 var promise = ret.promise();
8660 ret.setHowMany(howMany);
8661 ret.init();
8662 return promise;
8663}
8664
8665Promise.some = function (promises, howMany) {
8666 return some(promises, howMany);

Callers 1

mammoth.browser.jsFile · 0.70

Calls 1

apiRejectionFunction · 0.70

Tested by

no test coverage detected