promise-traverse
v0.0.3
Published
Promise.all on steroids
Downloads
5
Maintainers
Readme
promise-traverse
Promise.all
as it should've been.
var traverse = require('promise-traverse');
var deep = {
name: Promise.resolve('john'),
cats: [
{
color: 'white'
},
{
color: Promise.resolve('black')
}
],
numbers: [1, 13, Promise.resolve(42)]
};
traverse(deep).then(console.dir.bind(console));
// Profit
install
with npm do:
npm install promise-traverse
license
MIT