tahamajs's picture
download
raw
421 Bytes
"use strict";
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);
};
};

Xet Storage Details

Size:
421 Bytes
·
Xet hash:
7cc9d7a0d17e3cbf6d48e0f13d89d7f09fff2bef6aeb3c1f2da8ebf2e5bfb626

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.