promise-any-ext

1.0.0 • Public • Published

Promise.any() Build Status

Installation

npm install promise-any-ext

Usage

var Promise = global.Promise || require("es6-promise").Promise;
Promise.any = require('promise-any-ext');
 
var promises = [Promise.reject('a'), Promise.resolve('b')];
 
Promise.any(promises).then(function (value) {
    // value is b
});

Dependencies (1)

Dev Dependencies (1)

Package Sidebar

Install

npm i promise-any-ext

Weekly Downloads

502

Version

1.0.0

License

MIT

Last publish

Collaborators

  • andyjansson