Skip to content

steinerj/promise-any

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

promise-any

Codeship Status for m0ppers/promise-any

ES6 promises don't provide any(). A small library to implement them.

var promiseAny = require('promise-any');
var promises = [Promise.resolve('p1'), Promise.reject('p2')];

promiseAny(promises).then(function(value) {
    // value is p1 :)
});

About

Promise.any() implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%