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

    1.0.7 • Public • Published

    @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
      }
     
    }
     

    Install

    npm i @jsdecorators/throttle

    DownloadsWeekly Downloads

    11

    Version

    1.0.7

    License

    MIT

    Unpacked Size

    18.1 kB

    Total Files

    13

    Last publish

    Collaborators

    • imyth