Files
setup-haskell/node_modules/rsvp/lib/rsvp/all.js
Timothy Clem 63b90beb0c npm audit fix
2019-09-30 10:04:01 -07:00

17 lines
335 B
JavaScript

import Promise from "./promise";
/**
This is a convenient alias for `Promise.all`.
@method all
@public
@static
@for rsvp
@param {Array} array Array of promises.
@param {String} [label] An optional label. This is useful
for tooling.
*/
export default function all(array, label) {
return Promise.all(array, label);
}