All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.bluebird.js.release.any.js Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
"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);
};

};




© 2015 - 2025 Weber Informatics LLC | Privacy Policy