1.0.3 • Published 7 years ago
thin-promise v1.0.3
Promise polyfill
API
- new Promise
- Promise.prototype.then(onFulfilled?, onRejected?)
- Promise.prototype.catch(errorhandler)
- Promise.prototype.finally(finallyFun)
- Promise.all(Array)
- Promise.resolve
- Promise.reject
import
import Promise from 'thin-promise'
or
<script src="https://unpkg.com/thin-promise"></script>
window.Promise = ThinPromise
Example
just see test