then / promise

Bare bones Promises/A+ implementation
https://www.promisejs.org
MIT License
2.58k stars 312 forks source link

feat: support ES2015 iterables in all() and race() #160

Closed motiz88 closed 4 years ago

motiz88 commented 4 years ago

Aligns Promise.all() and Promise.race() with the spec by supporting iterables as arguments. This is done by basically feature-detecting ES2015 and keeping the current behaviour in ES5 environments (which I assume are still intended to be supported).

cc @cpojer

coveralls commented 4 years ago

Coverage Status

Coverage decreased (-0.5%) to 95.266% when pulling a3a955b1bca0dd8b38ebf387739a3da177ed3c42 on motiz88:iterables into 81b57224a43b65bf50b0445f32f206429ad3d4b6 on then:master.