new Promise((resolve, reject) => {
resolve('result1', 'resolve2');
}).then((result1, result2) => {
console.info(result1, result2);
});
Why Promise returns only one result in JavaScript like in the above code?
I'm sorry for my unclearly describe. I'm know how to return an object or an array value in resolve. I'm just curious why Promise design to return only on result.