1.0.7 • Published 6 years ago

@jsdecorators/throttle v1.0.7

Weekly downloads
8
License
MIT
Repository
github
Last release
6 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

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago