mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
Update doc examples to ES2015.
This commit is contained in:
4
delay.js
4
delay.js
@@ -13,9 +13,7 @@ import toNumber from './toNumber.js';
|
||||
* @returns {number} Returns the timer id.
|
||||
* @example
|
||||
*
|
||||
* delay(function(text) {
|
||||
* console.log(text);
|
||||
* }, 1000, 'later');
|
||||
* delay(text => console.log(text), 1000, 'later');
|
||||
* // => Logs 'later' after one second.
|
||||
*/
|
||||
function delay(func, wait, ...args) {
|
||||
|
||||
Reference in New Issue
Block a user