The value to be debounced.
The delay in milliseconds before invoking the debounced value.
Optionaloptions: {The optional configuration options for debounce behavior.
OptionalequalityFn?: (left: T, right: T) => booleanThe custom equality function to compare previous and current values.
Optionalleading?: booleanDetermines if the debounced value should be invoked on the leading edge.
OptionalmaxWait?: numberThe maximum wait time in milliseconds before invoking the debounced value.
Optionaltrailing?: booleanDetermines if the debounced value should be invoked on the trailing edge.
An array containing the debounced value and control functions for the debounced callback.
Debounces the given value with the specified delay.