Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/hokaccha/mabiki
- Owner: hokaccha
- License: other
- Created: 2021-03-15T03:47:45.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-26T01:44:29.000Z (almost 4 years ago)
- Last Synced: 2024-10-05T08:36:27.235Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 82 KB
- Stars: 38
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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));
```