Promise.withResolvers Playground

Mrs. Sari’s kitchen only speaks in callbacks: Promise.withResolvers hands her resolve and reject to call from outside. If both are called, which one counts?…

The key idea

resolve and reject can go anywhere

Try it in this playground