promise-spread
v0.1.0
Published
`spread()` for native ES6 Promises
Downloads
992
Maintainers
Readme
promise-spread
spread()
for native ES6 Promises
Install
Install with npm
$ npm i promise-spread --save
Usage
with native-or-bluebird
var Promise = require('native-or-bluebird');
require('promise-spread')(Promise);
with any-promise
var Promise = require('any-promise');
require('promise-spread')(Promise);
with native Promises
require('promise-spread');
Alternatives to using spread()
ES6 introduces destructuring and the rest/spread operator, which eliminate the need for spread
outright. (Kris Kowal)
.then(([a, b, c]) => {});
Running tests
Install dev dependencies:
$ npm i -d && npm test
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Author
Andreas Pizsa
Based on code by Benjamin Gruenbaum's answer on StackOverflow
License
Copyright © 2016 Andreas Pizsa Released under the MIT license.
This file was generated by verb-cli on February 04, 2016.