Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

promise-spread

andreaspizsa956MIT0.1.0

spread() for native ES6 Promises

promises, native, spread, es6, any-promise, native-or-bluebird, bluebird

readme

promise-spread Travis Coverage Status Downloads

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.