Promise((success, reject) => {
//do stuff
success("hello", "world");
}).then((val1, val2) => {
//do stuff with val 1 and val 2
});
Nope, you must resolve to a single value
Обсуждают сегодня