in _.debounce , set immediate true, the debounced function cannot work
Author: blueMountain007Created Apr 24, 2020Updated Dec 2, 2023
function foo() {console.log("1")} foo2 = debounce(foo, 3000, true); foo2()
no log consoled
Source: you-dont-need/You-Dont-Need-Lodash-Underscore