Variable: defineDebounceFn

const defineDebounceFn: DefineDebounceFn

DefineDebounceFn is a function that creates a debounced function.

Param

fn

The function to be debounced.

Param

delay

The delay in milliseconds to wait before the debounced function is called. Default is 500ms.

Param

immediate

Whether the debounced function should be called immediately before the delay. Default is false.

Returns

  • The debounce function.