mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Bump to v4.7.0.
This commit is contained in:
3
delay.js
3
delay.js
@@ -8,6 +8,7 @@ import toNumber from './toNumber';
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 0.1.0
|
||||
* @category Function
|
||||
* @param {Function} func The function to delay.
|
||||
* @param {number} wait The number of milliseconds to delay invocation.
|
||||
@@ -18,7 +19,7 @@ import toNumber from './toNumber';
|
||||
* _.delay(function(text) {
|
||||
* console.log(text);
|
||||
* }, 1000, 'later');
|
||||
* // => logs 'later' after one second
|
||||
* // => Logs 'later' after one second.
|
||||
*/
|
||||
var delay = rest(function(func, wait, args) {
|
||||
return baseDelay(func, toNumber(wait) || 0, args);
|
||||
|
||||
Reference in New Issue
Block a user