easyDebounce
This is a re-created debounce version with less codes in ES6 built with Rollup.
Installation
Node JS (>=8.4.0)
npm install easy-debounce or yarn add easy-debounce
browser
<script src="https://unpkg.com/easy-debounce@1.0.2/dist/easyDebounce.umd.js"></script>
Usage
ES Modules
common js
const debounce =
browser js
var debounce = windoweasyDebounce;
API
debounce(fn, wait, [ immediate || false ])
License
MIT