minor fixes
This commit is contained in:
parent
3440a4eb80
commit
df6f6be420
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ Then if the wrapped function is called at 0ms, 200ms and 500ms, and then there a
|
||||||
|
|
||||||
...And it will get the arguments of the very last call, other calls are ignored.
|
...And it will get the arguments of the very last call, other calls are ignored.
|
||||||
|
|
||||||
Here's the code (uses the debounce decorator from the [Lodash library](https://lodash.com/docs/4.17.15#debounce):
|
Here's the code for it (uses the debounce decorator from the [Lodash library](https://lodash.com/docs/4.17.15#debounce):
|
||||||
|
|
||||||
```js
|
```js
|
||||||
let f = _.debounce(alert, 1000);
|
let f = _.debounce(alert, 1000);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue