Skip to main content

Function: debounce()

debounce<TArguments>(function_: (...arguments_: TArguments) => void, wait: number): (...arguments_: TArguments) => void

Defined in: src/stores/utils.ts:31

Debounces a function, delaying execution until after the wait period has elapsed since the last call.

Type Parametersโ€‹

TArgumentsโ€‹

TArguments extends unknown[]

Parametersโ€‹

function_โ€‹

(...arguments_: TArguments) => void

waitโ€‹

number

Returnsโ€‹

(...arguments_: TArguments): void

Parametersโ€‹

arguments_โ€‹

...TArguments

Returnsโ€‹

void