@0b5vr/experimental
    Preparing search index...

    Function debounce

    • Make the given function a debounced one.

      Parameters

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

      Returns () => void

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

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