Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mvaldesdeleon/promise-traverse

Promise.all as it should've been
https://github.com/mvaldesdeleon/promise-traverse

Last synced: about 6 hours ago
JSON representation

Promise.all as it should've been

Awesome Lists containing this project

README

        

# promise-traverse

`Promise.all` as it should've been.

```JS
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](https://npmjs.org) do:

```
npm install promise-traverse
```

# license

MIT