mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Bump to v4.7.0.
This commit is contained in:
3
defer.js
3
defer.js
@@ -6,6 +6,7 @@ define(['./_baseDelay', './rest'], function(baseDelay, rest) {
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 0.1.0
|
||||
* @category Function
|
||||
* @param {Function} func The function to defer.
|
||||
* @param {...*} [args] The arguments to invoke `func` with.
|
||||
@@ -15,7 +16,7 @@ define(['./_baseDelay', './rest'], function(baseDelay, rest) {
|
||||
* _.defer(function(text) {
|
||||
* console.log(text);
|
||||
* }, 'deferred');
|
||||
* // => logs 'deferred' after one or more milliseconds
|
||||
* // => Logs 'deferred' after one or more milliseconds.
|
||||
*/
|
||||
var defer = rest(function(func, args) {
|
||||
return baseDelay(func, 1, args);
|
||||
|
||||
Reference in New Issue
Block a user