@arcmantle/library
    Preparing search index...

    Function throttle

    • Takes in a func, returns a new function that performs the same task as the original, but is capped to only execute at the given rate in milliseconds.

      Type Parameters

      • T extends Fn<Args, void>
      • Args = any

      Parameters

      • func: T
      • rate: number

      Returns T