Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 30, 2024 via pnpm

lodash.debounce 4.0.8

The lodash method `_.debounce` exported as a module.
Package summary
Share
0
issues
1
license
1
MIT
Package created
23 Sep 2013
Version published
13 Aug 2016
Maintainers
2
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
lodash.debounce@4.0.8
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of lodash.debounce 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does lodash.debounce do?

Lodash.debounce is a utility function from the Lodash library that's exported as a standalone Node.js module. It provides functionality to delay the execution of a function until after a given wait time in milliseconds has passed since the last time the debounced function was invoked. This is particularly useful for rate-limiting execution of a function, for event handlers, or for reducing the number of costly computations.

How do you use lodash.debounce?

In order to use lodash.debounce, you need to first install it using npm. Open up your terminal and run the following commands:

$ {sudo -H} npm i -g npm
$ npm i --save lodash.debounce

After installing, you can require it in your Node.js application with:

var debounce = require('lodash.debounce');

Once required, you can use the debounce function like so:

var myEfficientFn = debounce(function() {
    // All the taxing tasks you do
}, 250);
window.addEventListener('resize', myEfficientFn);

In this case, myEfficientFn will only actually be invoked once every 250 milliseconds, no matter how many times the 'resize' event is fired.

Where are the lodash.debounce docs?

For additional details regarding lodash.debounce, you can browse the official lodash documentation at https://lodash.com/docs#debounce. You can also inspect the complete lodash.debounce package source at its GitHub repository https://github.com/lodash/lodash/blob/4.0.8-npm-packages/lodash.debounce.