then-all

2.0.0 • Public • Published

Build Status jepso-ci status

then/all

Wait for multiple promises to be resolved

Installation

Server:

$ npm install then-all

Client:

$ component install then/all

API

var all = require('all');
all(get('foo'), get('bar'))
  .then(function (arr) {
    var foo = arr[0];
    var bar = arr[1];
  });
all([get('foo'), get('bar')])
  .then(function (arr) {
    var foo = arr[0];
    var bar = arr[1];
  });

License

MIT

/then-all/

    Package Sidebar

    Install

    npm i then-all

    Weekly Downloads

    1

    Version

    2.0.0

    License

    MIT

    Last publish

    Collaborators

    • forbeslindesay