0.0.5 • Published 1 year ago
@enhances/with-resolvers v0.0.5
Promise.witResolvers() polyfill
use
// main.js
import '@enhances/with-resolvers';
or
require('@enhances/with-resolvers');
or
import('@enhances/with-resolvers');
const {resolve, reject, promise} = Promise.withResolvers();
promise.then(console.log, console.error);
resolve('withResolvers');