Skip to content

Instantly share code, notes, and snippets.

@comficker
Last active October 13, 2022 08:03
Show Gist options
  • Save comficker/c88af08d281f1a5da14f6a662be40e5d to your computer and use it in GitHub Desktop.
Save comficker/c88af08d281f1a5da14f6a662be40e5d to your computer and use it in GitHub Desktop.
Lodash Debounce - simple snippet - https://dev.to/lamhoanghg/lodash-debounce-24kl
// 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