Skip to content

cottom/thin-promise

Repository files navigation

Promise polyfill

Build StatusCoverage Status

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

About

⚙️ tiny promise polyfill

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published