Function debounce

  • Description

    Creates a debounced function that delays invoking func until after wait milliseconds have elapsed since the last time the debounced function was invoked.

    Returns

    Parameters

    • func: ((arg0: unknown) => unknown)

      Function to call

        • (arg0: unknown): unknown
        • Parameters

          • arg0: unknown

          Returns unknown

    • wait: number = 0

      Time to delay

    Returns ((arg0: unknown) => unknown)

      • (arg0: unknown): unknown
      • Parameters

        • arg0: unknown

        Returns unknown

Generated using TypeDoc