mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 23:57:49 +00:00
Bump to v3.6.0.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import baseDelay from '../internal/baseDelay';
|
||||
import restParam from './restParam';
|
||||
|
||||
/**
|
||||
* Defers invoking the `func` until the current call stack has cleared. Any
|
||||
@@ -17,8 +18,8 @@ import baseDelay from '../internal/baseDelay';
|
||||
* }, 'deferred');
|
||||
* // logs 'deferred' after one or more milliseconds
|
||||
*/
|
||||
function defer(func) {
|
||||
return baseDelay(func, 1, arguments, 1);
|
||||
}
|
||||
var defer = restParam(function(func, args) {
|
||||
return baseDelay(func, 1, args);
|
||||
});
|
||||
|
||||
export default defer;
|
||||
|
||||
Reference in New Issue
Block a user