1 var baseDelay = require('../internal/baseDelay'),
2 restParam = require('./restParam');
5 * Invokes `func` after `wait` milliseconds. Any additional arguments are
6 * provided to `func` when it's invoked.
11 * @param {Function} func The function to delay.
12 * @param {number} wait The number of milliseconds to delay invocation.
13 * @param {...*} [args] The arguments to invoke the function with.
14 * @returns {number} Returns the timer id.
17 * _.delay(function(text) {
20 * // => logs 'later' after one second
22 var delay = restParam(function(func, wait, args) {
23 return baseDelay(func, wait, args);
26 module.exports = delay;