4.17.11
3.10.1
2.4.2
1.3.1
_.defer(func, [args])
Defers invoking the func
until the current call stack has cleared. Any
additional arguments are provided to func
when it's invoked.
Since
0.1.0
Arguments
argument
func
[args]
type
Function
...*
description
The function to defer.
The arguments to invoke `func` with.
Returns
(array)
Example
_.defer(function (text) {
console.log(text);
}, "deferred");
// => Logs 'deferred' after one millisecond.
_.defer(function (text) {
console.log(text);
}, "deferred");
// => Logs 'deferred' after one millisecond.