1.0.7 • Published 4 years ago

@jsdecorators/throttle v1.0.7

Weekly downloads
8
License
MIT
Repository
github
Last release
4 years ago

@jsdecorators/throttle

Encapsulate lodash.throttle to a decorator. For further details please check lodash/throttle.js

install

~$ yarn add @jsdecorators/throttle

or

~$ npm i @jsdecorators/throttle

usage

import throttle from '@jsdecorators/throttle';

class MyClass {

  @throttle(100)
  onScroll() {
    // this function would be called every 100ms
  }

}
1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago