@banterstudiosuk/throttle
v0.1.3
Published
Simple throttle function
Readme
@banterstudiosuk/throttle
Throttle function
Install
npm
npm i --save @banterstudiosuk/throttleUsage
import throttle from '@banterstudiosuk/throttle'
const handleScroll = () => console.log('scrolling')
const throttledFn = throttle(handleScroll, 100)
window.addEventListener('scroll', throttledFn, false)License
MIT
