🏠 New in Low Baseline Support: Promise.withResolvers()

March 5, 2024

caniuse · mdn · spec

The Promise.withResolvers() static method is an alternative to the Promise() constructor that returns both the promise and resolution functions. You can use this to access resolve and reject outside the scope of the executor function.

Source features