Create an empty promise that just fulfills? [duplicate]
Solution 1:
Promise
constructor requires executor function as parameter. Substitute Promise.resolve()
for new Promise()
Promise
constructor requires executor function as parameter. Substitute Promise.resolve()
for new Promise()