Remove semicolons.

This commit is contained in:
John-David Dalton
2017-02-04 23:50:10 -08:00
parent f3a8e55e70
commit 6cb3460fce
452 changed files with 4261 additions and 4261 deletions

View File

@@ -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