Defers invoking the func until the current call stack has cleared. Any additional arguments are provided to func when it's invoked.
func
The function to defer.
Rest
The arguments to invoke func with.
Returns the timer id.
defer((text) => { console.log(text);}, 'deferred');// => Logs 'deferred' after the current call stack has cleared. Copy
defer((text) => { console.log(text);}, 'deferred');// => Logs 'deferred' after the current call stack has cleared.
Alias