Promise.withResolvers()

Build the ES2024 Promise.withResolvers — return a promise along with its resolve and reject functions as a plain object.

Asked in Meta frontend interviews