Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ec84c3f

Browse files
difference, is different
1 parent 00689d3 commit ec84c3f

File tree

1 file changed

+1
-1
lines changed
  • 1-js/06-advanced-functions/09-call-apply-decorators/04-throttle

1 file changed

+1
-1
lines changed

‎1-js/06-advanced-functions/09-call-apply-decorators/04-throttle/task.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Create a "throttling" decorator `throttle(f, ms)` -- that returns a wrapper.
88

99
When it's called multiple times, it passes the call to `f` at maximum once per `ms` milliseconds.
1010

11-
The difference with debounce is that it's completely different decorator:
11+
Compared to the debounce decorator, the behavior is completely different:
1212
- `debounce` runs the function once after the "cooldown" period. Good for processing the final result.
1313
- `throttle` runs it not more often than given `ms` time. Good for regular updates that shouldn't be very often.
1414

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /