Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#278·You-Dont-Need-Lodash-Underscore

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

View original on GitHubView discussion on GitHub