4.17.11
3.10.1
2.4.2
1.3.1
_.delay(func, wait, [args])
Invokes func
after wait
milliseconds. Any additional arguments are
provided to func
when it's invoked.
Since
0.1.0
Arguments
argument
func
wait
[args]
type
Function
number
...*
description
The function to delay.
The number of milliseconds to delay invocation.
The arguments to invoke `func` with.
Returns
(array)
Example
_.delay(
function (text) {
console.log(text);
},
1000,
"later"
);
// => Logs 'later' after one second.
_.delay(
function (text) {
console.log(text);
},
1000,
"later"
);
// => Logs 'later' after one second.