Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hokaccha/mabiki

Provides throttle and debounce, which are compatible with lodash.
https://github.com/hokaccha/mabiki

Last synced: about 2 months ago
JSON representation

Provides throttle and debounce, which are compatible with lodash.

Awesome Lists containing this project

README

        

# mabiki

mabiki provides throttle and debounce, which are compatible with lodash.

## Install

```
$ npm install mabiki
```

## Usage

```javascript
import { debounce, throttle } from "mabiki";

window.addEventListener("scroll", debounce(() => {
// do something
}, 200));

window.addEventListener("scroll", throttle(() => {
// do something
}, 200));
```