mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 03:17:49 +00:00
Apply spread arguments transform.
This commit is contained in:
@@ -15,7 +15,7 @@ function baseDelay(func, wait, args) {
|
||||
if (typeof func != 'function') {
|
||||
throw new TypeError(FUNC_ERROR_TEXT);
|
||||
}
|
||||
return setTimeout(() => func.apply(undefined, args), wait);
|
||||
return setTimeout(() => func(...args), wait);
|
||||
}
|
||||
|
||||
export default baseDelay;
|
||||
|
||||
Reference in New Issue
Block a user