Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating debounce documentation #2858

Merged
merged 5 commits into from
Jun 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions modules/debounce.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import restArguments from './restArguments.js';
import delay from './delay.js';

// Returns a function, that, as long as it continues to be invoked, will not
// be triggered. The function will be triggered after it stops being called for
// N milliseconds. If `immediate` is passed, trigger the function on the
// leading edge, instead of the trailing.
// When a sequence of calls of the returned function ends, the argument
// function is triggered. The end of a sequence is defined by the ‘wait’
// parameter. If immediate is passed, the argument function will be
// triggered at the beginning of the sequence as well.
export default function debounce(func, wait, immediate) {
var timeout, result;

Expand Down
8 changes: 4 additions & 4 deletions underscore-esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions underscore.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.