Function throttle

  • Creates a throttled function that only invokes func at most once per every wait milliseconds. Subsequent calls to the throttled function return the result of the last successful invocation.

    Returns

    Returns the new throttled function.

    Parameters

    • func: Function<any>

      The function to throttle.

    • wait: number

      The number of milliseconds to throttle invocations to.

    Returns Function

Generated using TypeDoc