@arcmantle/library
    Preparing search index...

    Function debounce

    • Returns the supplied function wrapped in a that runs only once, after a delay.

      Repeated calls to this function within the delay period will reset the timeout, effectively delaying the call of the original function.

      Type Parameters

      • T extends () => any

      Parameters

      • func: T
      • delay: number = 0

      Returns { cancel(): void; run(): void; (): void }