promise-any-ext

A Promise extension to return on first resolved promise

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
promise-any-ext
1.0.09 years ago9 years agoMinified + gzip package size for promise-any-ext in KB

Readme

Promise.any() !Build Statusci-imgci

Installation

```js npm install promise-any-ext ```

Usage

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