@jsdecorators/debounce
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@jsdecorators/debounce

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

install

~$ yarn add @jsdecorators/debounce

or

~$ npm i @jsdecorators/debounce

how to use

import debounce from '@jsdecorators/debounce';

class MyClass {

  @debounce(100)
  onScroll() {
    console.log('onScroll is called!');
  }

}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    1
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @jsdecorators/debounce

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

19 kB

Total Files

13

Last publish

Collaborators

  • imyth