mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Update doc examples to ES2015.
This commit is contained in:
4
defer.js
4
defer.js
@@ -11,9 +11,7 @@ import baseDelay from './.internal/baseDelay.js';
|
||||
* @returns {number} Returns the timer id.
|
||||
* @example
|
||||
*
|
||||
* defer(function(text) {
|
||||
* console.log(text);
|
||||
* }, 'deferred');
|
||||
* defer(text => console.log(text), 'deferred');
|
||||
* // => Logs 'deferred' after one millisecond.
|
||||
*/
|
||||
function defer(func, ...args) {
|
||||
|
||||
Reference in New Issue
Block a user