@arcmantle/library
    Preparing search index...

    Function withDebounce

    • Triggers the initial function immediatly on every successive call. Activates a debounce that fulfills and triggers the debounce function only if there has been a sufficient delay between activations.

      Type Parameters

      • TFunc extends (...args: any[]) => any
      • TDebounce extends () => any

      Parameters

      Returns { cancel: () => void; run: () => void; (...args: Parameters<TFunc>): any }