yatter
    Preparing search index...

    Function throttle

    • 节流

      Type Parameters

      • F extends AnyFunction<any>
      • T extends undefined | boolean = true

      Parameters

      • fun: F
      • delay: number
      • option: ThrottleOption<T> = {}
        • leading

          是否立即执行首次 default is true

        • trailing

          是否保证执行最后一次 default is true

      Returns <C>(this: C, ...args: Parameters<F>) => void