@amxdev/throttle
Version:
Throttle a function to limit calls within a time frame.
22 lines (13 loc) • 294 B
Markdown
@amxdev/throttle
Throttle a function to limit calls within a time frame.
# Install
```bash
npm install @amxdev/throttle
```
# Usage
```ts
import { throttle } from "@amxdev/throttle";
throttle(const throttledScroll = throttle(() => console.log("scroll"), 200);)
```
# License
MIT