mabiki
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i mabiki

Weekly Downloads

1,123

Version

1.0.1

License

MIT

Unpacked Size

62.4 kB

Total Files

31

Last publish

Collaborators

  • hokaccha