You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ES6 promises don't provide any(). A small library to implement them.
varpromiseAny=require('promise-any');varpromises=[Promise.resolve('p1'),Promise.reject('p2')];promiseAny(promises).then(function(value){// value is p1 :)});