re: Using ES6 array destructing with Promises VIEW POST

FULL DISCUSSION
 

It does not make sense to create a rejectable Promise if it cannot be rejectable. So you can use directly:

return Promise.resolve("whatever");

//instead of

return new Promise((resolve, reject)=> {
 resolve("whatever");
});
code of conduct - report abuse