0.2.0 • Published 8 years ago
throttle-decorator v0.2.0
throttle-decorator
ES decorator that make a function throttled.
Install
$ npm install --save-dev throttle-decorator
Usage
import throttle from 'throttle-decorator';
class Cat {
@throttle(100)
meow() {
console.log('meow');
}
}