accumulate-call
v1.0.0
Published
Accumulate function calls
Downloads
3
Readme
accumulate-call
Accumulate function calls
Install
npm install accumulate-call
Usage
import { accumulateUntil } from 'accumulate-call';
document.body.addEventListener('click', accumulateUntil((events) => {
console.log(`Clicked ${events.length} times`);
}, 1000));
API
See type definitions.
Author
aereal
License
MIT License