mabiki
v1.0.1
Published
Provides throttle and debounce
Downloads
1,493
Readme
mabiki
mabiki provides throttle and debounce, which are compatible with lodash.
Install
$ npm install mabiki
Usage
import { debounce, throttle } from "mabiki";
window.addEventListener("scroll", debounce(() => {
// do something
}, 200));
window.addEventListener("scroll", throttle(() => {
// do something
}, 200));