@0b5vr/experimental
    Preparing search index...

    Function throttle

    • Make the given function a throttled one.

      Parameters

      • func: () => void
      • rateMs: number

      Returns () => void

      const func = throttle( 100, () => {
      // some expensive procedure
      } );

      func();
      func();
      func();