• Preparing search index...
  • The search index is not available
mdv
  • mdv
  • utilities/Utilities
  • debounce

Function debounce

  • debounce<A extends any[]>(
        fn: (...args: A) => void,
        timeout: number,
    ): (...args: A) => void
  • Debounce function. Return a function that, as long as it continues to be invoked, will not be called until timeout ms have passed since the last call. based on https://www.freecodecamp.org/news/javascript-debounce-example/

    Type Parameters

    • A extends any[]

    Parameters

    • fn: (...args: A) => void
    • timeout: number

    Returns (...args: A) => void

    • Defined in src/utilities/Utilities.ts:31

Settings

Member Visibility
mdv
  • Loading...

Generated using TypeDoc