Mastodon: December 3, 2024 at 6:15:44 PM UTC

from blog Zach Leatherman’s Activity Feed, | ↗ original
Shout out to `Promise.withResolvers`—shipping with Node.js 22+let { promise, resolve, reject } = Promise.withResolvers();https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers