* Executes the `func` function after `wait` milliseconds. Additional arguments * will be provided to `func` when it is invoked. * * @static * @memberOf _ * @category Functions * @param {Function} func The function to delay. * @param {number} wait The number of mill
(func, wait)
| 40646 | * // => logs 'later' after one second |
| 40647 | */ |
| 40648 | function delay(func, wait) { |
| 40649 | if (!isFunction(func)) { |
| 40650 | throw new TypeError; |
| 40651 | } |
| 40652 | var args = slice(arguments, 2); |
| 40653 | return setTimeout(function() { func.apply(undefined, args); }, wait); |
| 40654 | } |
| 40655 | |
| 40656 | /** |
| 40657 | * Creates a function that memoizes the result of `func`. If `resolver` is |
nothing calls this directly
no test coverage detected