ES Proposal spec-compliant shim for Promise.any. Invoke its "shim" method to shim
Promise.any if it is unavailable or noncompliant. Note: a global
Promise must already exist: the es6-shim is recommended.
Most common usage:
var assert = ;var any = ;var resolved = Promise;var rejected = Promise;var alsoRejected = Promise;;;any; // will be a no-op if not neededPromise;Promise;
Simply clone the repo,
npm install, and run
promise.any package was released as now-deprecated v0.1.0 and v0.1.1, as a fork of https://github.com/m0ppers/promise-any.
Thanks to @sadorlovsky for donating the repo and the
promise.any npm package!