some of the copy from vueuse
Features
- Interactive docs & demos
- Fully tree shakeable: Only take what you want, bundle size
- Type Strong: Written in TypeScript, with TS Docs
- SSR Friendly
Usage
import { useThrottle } from 'comuse-core'
const throttledFn = useThrottle(() => {
// do something, it will be called at most 1 time per second
}, 1000)
window.addEventListener('resize', throttledFn)
Refer to functions list or documentations for more details.
Install
npm i comuse
Contribute
See the Contributing Guide
License
MIT License 2024-PRESENT Ajiu9