Function throttle

  • Creates a throttled function that only invokes func at most once per every wait milliseconds.

    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