Skip to content

aereal/node-accumulate-call

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

accumulate-call Build Status npm version

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