@skyrpex/promise
v1.0.0
Published
-
Downloads
2
Readme
Promise
Provides a Promise polyfill based on jQuery.Deferred.
Installation
npm install @skyrpex/promise --save
Usage
import Promise from "@skyrpex/promise";
let promise = new Promise((fulfill, reject) => {
setTimeout(fulfill, 3 * 1000);
});
promise.then(() => console.log("Done!"));