Promise.resolve()
Term side of the Card
Topic: Promise
Unit title: Promise.resolve()
Categories: Method
Explanation side of the Card
Explanation: The static method that returns a `Promise` object that is resolved with a given value. If the value is a promise, that promise is returned; if it's a thenable object, it will be converted to a promise; otherwise, it will be wrapped in a promise.
Browser compatibility:
- The chrome browser supports this feature starting from version 32
- The edge browser supports this feature starting from version 12
- The firefox browser supports this feature starting from version 29
- The safari browser supports this feature starting from version 8
Availability: