mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Apply even more let/const transforms.
This commit is contained in:
5
delay.js
5
delay.js
@@ -1,5 +1,4 @@
|
||||
import baseDelay from './_baseDelay.js';
|
||||
import baseRest from './_baseRest.js';
|
||||
import toNumber from './toNumber.js';
|
||||
|
||||
/**
|
||||
@@ -21,6 +20,8 @@ import toNumber from './toNumber.js';
|
||||
* }, 1000, 'later');
|
||||
* // => Logs 'later' after one second.
|
||||
*/
|
||||
var delay = baseRest((func, wait, args) => baseDelay(func, toNumber(wait) || 0, args));
|
||||
function delay(func, wait, ...args) {
|
||||
return baseDelay(func, toNumber(wait) || 0, args);
|
||||
}
|
||||
|
||||
export default delay;
|
||||
|
||||
Reference in New Issue
Block a user