mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Apply rest arguments transform.
This commit is contained in:
@@ -157,11 +157,11 @@ function debounce(func, wait, options) {
|
||||
return timerId === undefined ? result : trailingEdge(now());
|
||||
}
|
||||
|
||||
function debounced() {
|
||||
function debounced(...args) {
|
||||
var time = now(),
|
||||
isInvoking = shouldInvoke(time);
|
||||
|
||||
lastArgs = arguments;
|
||||
lastArgs = args;
|
||||
lastThis = this;
|
||||
lastCallTime = time;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user