Skip to content

Provides throttle and debounce, which are compatible with lodash.

License

Notifications You must be signed in to change notification settings

hokaccha/mabiki

Repository files navigation

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));

About

Provides throttle and debounce, which are compatible with lodash.

Resources

License

Stars

Watchers

Forks

Packages

No packages published