In callbacks we can send as many arguments as we want.
Likewise, I want to pass multiple arguments to a then
function, either in Bluebird promises or native JavaScript promises.
Like this:
myPromise.then(a => {
var b=122;
// here I want to return multiple arguments
}).then((a,b,c) => {
// do something with arguments
});
Copyright Notice:Content Author:「hardy」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/43696257/send-multiple-arguments-in-then-function