mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Remove semicolons.
This commit is contained in:
8
defer.js
8
defer.js
@@ -9,14 +9,14 @@
|
||||
* @returns {number} Returns the timer id.
|
||||
* @example
|
||||
*
|
||||
* defer(text => console.log(text), 'deferred');
|
||||
* defer(text => console.log(text), 'deferred')
|
||||
* // => Logs 'deferred' after one millisecond.
|
||||
*/
|
||||
function defer(func, ...args) {
|
||||
if (typeof func != 'function') {
|
||||
throw new TypeError('Expected a function');
|
||||
throw new TypeError('Expected a function')
|
||||
}
|
||||
return setTimeout(func, 1, ...args);
|
||||
return setTimeout(func, 1, ...args)
|
||||
}
|
||||
|
||||
export default defer;
|
||||
export default defer
|
||||
|
||||
Reference in New Issue
Block a user