Photo Sphere Viewer
    Preparing search index...

    Function throttle

    • Returns a function, that, when invoked, will only be triggered at most once during a given window of time.

      Type Parameters

      • T extends (...args: any) => any

      Parameters

      • callback: T
      • wait: number

      Returns (...args: Parameters<T>) => void