1.0.7 • Published 6 years ago
@jsdecorators/throttle v1.0.7
@jsdecorators/throttle
Encapsulate
lodash.throttleto a decorator. For further details please check lodash/throttle.js
install
~$ yarn add @jsdecorators/throttleor
~$ npm i @jsdecorators/throttleusage
import throttle from '@jsdecorators/throttle';
class MyClass {
@throttle(100)
onScroll() {
// this function would be called every 100ms
}
}