cujojs / when

A solid, fast Promises/A+ and when() implementation, plus other async goodies.
Other
3.44k stars 394 forks source link

Add array methods to promise prototype #469

Closed mnahkies closed 2 years ago

mnahkies commented 8 years ago

For feedback and review. Implements issue #468.

Have not updated the docs at this point. If you are happy with the proposed change, I can amend with documentation updates to match.

For the case of a promise that doesn't resolve to an array being used, I've gone with the behaviour of resolving to an empty array to match the behaviour of the statically accessible functions.