javascript promise not passing all arguments (using Q)

Q promises can be resolved with only one argument – a promise stands for one single value, not for a collection of them. Put them in an array explicitly if you need multiple values. For the multiple-parameter-callbacks, you can use .spread().

Leave a Comment