Little throttle function
This project uses node and npm.
$ npm install @tiaanduplessis/throttlify
$ # OR
$ yarn add @tiaanduplessis/throttlify
import throttlify from '@tiaanduplessis/throttlify'
const log = (...args) => console.log(...args)
const throttledLog = throttlify(log, 400)
throttledLog('First Foo!')
throttledLog('Ignored Foo!')
throttledLog('Ingored Foo!')
// First Foo!
- Fork it and create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
MIT