Apply spread arguments transform.

This commit is contained in:
John-David Dalton
2017-01-06 15:42:44 -08:00
parent 7167d7e09f
commit f4a6e9ede9
5 changed files with 5 additions and 5 deletions

View File

@@ -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;