Last active
October 13, 2022 08:03
-
-
Save comficker/c88af08d281f1a5da14f6a662be40e5d to your computer and use it in GitHub Desktop.
Lodash Debounce - simple snippet - https://dev.to/lamhoanghg/lodash-debounce-24kl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Requiring lodash library | |
const _ = require('lodash'); | |
// Using _.debounce() method | |
// with its parameters | |
var debounce_fun = _.debounce(function () { | |
console.log('Function debounced after 1000ms!'); | |
}, 1000); | |
debounce_fun(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment