rexolve
v1.0.1
Published
A lightweight Promise.all for Objects
Downloads
14
Readme
rexolve
A lightweight Promise.all for Objects
Installation
npm install rexolve --saveAPI
const rexolve = require('rexolve');Usage
// Object can be nested with arrays and objects indefinitely
rexolve({
foo: Promise.resolve('bar')
}).then(result => {
// result == { foo: 'bar' }
});
// Value caught would be the first error thrown
rexolve({
foo: Promise.reject('bar')
}).catch(error => {
// error == 'bar'
});License
MIT
