A function that aliases the very handy Promise.all
as Promise.ass
.
npm i promise-ass
Have you ever typed Promise.ass
instead of Promise.all
, only to get a TypeError: Promise.ass() is not a function
? Not anymore!
No it isn't.
Never. Don't even think about using it at work or in production code of any sort.
MIT
This is exported as a sole export of a CommonJS module. Just import the module, call the returned function, and you're all set.
require("promise-ass")();
Promise
.ass([promise1, promise2, promise3])
.then(([val1, val2, val3]) => {
/* Do something with values */
});
This literally just aliases an existing method of the Promise object so there are no dependencies and no building.
npm install --save-dev
npm test