1.1.1 • Published 6 years ago
easy-debounce v1.1.1
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
import debounce from 'easy-debounce'
common js
const debounce = require('easy-debounce')
browser js
var debounce = window.easyDebounce;
API
debounce(fn, wait, immediate || false )
License
MIT