A lightweight Promise.all for Objects
npm install rexolve --save
const rexolve = require('rexolve');
// 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'
});
MIT