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

https://github.com/fabiosantoscode/fast-deep-resolve

Resolves an object or array of promises
https://github.com/fabiosantoscode/fast-deep-resolve

Last synced: 10 months ago
JSON representation

Resolves an object or array of promises

Awesome Lists containing this project

README

          

# fast-deep-resolve

[![Build Status](https://travis-ci.org/fabiosantoscode/fast-deep-resolve.svg?branch=master)](https://travis-ci.org/fabiosantoscode/fast-deep-resolve)

Resolves nested objects and arrays with promises as a single promise. Like Promise.all, but for objects too!

No dependencies and hopefully super fast. If it's not fast, file an issue!

```javascript
const deepResolve = require('fast-deep-resolve')

deepResolve({
foo: Promise.resolve(['bar'])
}).then(...)
```