1.0.2 • Published 6 years ago

advanced_promise v1.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

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)