promise-all
A Promise.all but for Objects as well as Arrays
Installation
Install promise-all
using npm:
npm install --save promise-all
Usage
Module usage
var all = ; ; ;
API
all(val)
Name | Type | Description |
---|---|---|
val |
Array|Object |
An Object or Array of promises to resolve |
Returns: Promise
, which resolves when all promises in the passed Object or Array are resolved.
Related
License
MIT © Joakim Carlstein