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
});

Readme

Keywords

Package Sidebar

Install

npm i promise-any-ext

Weekly Downloads

90

Version

1.0.0

License

MIT

Last publish

Collaborators

  • andyjansson