1.0.2 • Published 6 years ago
advanced_promise v1.0.2
MyPromise
This is the first version of my promise, which at the moment works as a standard promise and supports methods: -then -case
Usage
For create new promise, write:
const promise = new MyPromise(executor);
Then, you can add handlers using commands:
promise.then(onFulfilled, onRejected)
promise.catch(onRejected)
1.0.2
6 years ago