nuǝɯ pǝɥsᴉꞁod mǝu

    @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!');
      }
    
    }

    Install

    npm i @jsdecorators/debounce

    DownloadsWeekly Downloads

    0

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    19 kB

    Total Files

    13

    Last publish

    Collaborators

    • imyth