What is the canonical way to create a resolved promise in ES 2015?
The Promise.resolve class method returns a promise that is instantiated as resolved with a value you can specify:
Promise.resolve
var promise = Promise.resolve(100);
2.1m questions
2.1m answers
60 comments
57.0k users