`spread()` for native ES6 Promises
npm install promise-spread> spread() for native ES6 Promises
Install with npm
``sh`
$ npm i promise-spread --save
#### with native-or-bluebird
`js`
var Promise = require('native-or-bluebird');
require('promise-spread')(Promise);
#### with any-promise
`js`
var Promise = require('any-promise');
require('promise-spread')(Promise);
#### with native Promises
`js`
require('promise-spread');
ES6 introduces destructuring and the rest/spread operator, which eliminate the need for spread outright. (Kris Kowal)
`javascript`
.then(([a, b, c]) => {});
Install dev dependencies:
`sh``
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Andreas Pizsa
+ github/AndreasPizsa
+ twitter/AndreasPizsa
Based on code by Benjamin Gruenbaum's answer on StackOverflow
Copyright © 2016 Andreas Pizsa
Released under the MIT license.
*
_This file was generated by verb-cli on February 04, 2016._