1.0.1 • Published 7 years ago
@tuxsudo/throttle v1.0.1
Throttler
Throttle the execution of a function. Written as an ES6 module.
import throttle from '@tuxsudo/throttle';
window.addEventListener('scroll', throttle( () => console.count(), 1000 ) );
Throttle the execution of a function. Written as an ES6 module.
import throttle from '@tuxsudo/throttle';
window.addEventListener('scroll', throttle( () => console.count(), 1000 ) );