Skip to main content

Introducing Workflow Engine, try for FREE workflowengine.io.

Function: debounce()

debounce<T>(fn, wait?): (...args) => ReturnType<T> | void

Debounce function calls with a timeout.

Type Parameters​

T​

T extends (...args) => any

Parameters​

fn​

T

the function to debounce.

wait?​

number = 0

the delay in ms.

Returns​

the debounced function.

(...args) => ReturnType<T> | void

Stay in the know
Quickly Build Drag-and-Drop Forms
Star us on GitHub