You-Dont-Need-Lodash-Underscore
You-Dont-Need-Lodash-Underscore copied to clipboard
in _.debounce , set immediate true, the debounced function cannot work
function foo() {console.log("1")} foo2 = debounce(foo, 3000, true); foo2()
no log consoled
This is indeed a bug.
Pull request #243 seems to have a fix for this issue.
As of March 30th 2022, PR https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/243 has not been merged. If you plan on using the existing function, please look at the first commit in the PR and make the change shown there.
Can someone create a standalone TS declaration of this function?
Fixed #362, no?