@enhances/with-resolvers
v0.0.5
Published
Promise withResolvers polyfill
Downloads
3,266
Maintainers
Readme
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');