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

@@ -10,19 +10,19 @@
* @example
*
* function isEven(n) {
* return n % 2 == 0;
* return n % 2 == 0
* }
*
* filter([1, 2, 3, 4, 5, 6], negate(isEven));
* filter([1, 2, 3, 4, 5, 6], negate(isEven))
* // => [1, 3, 5]
*/
function negate(predicate) {
if (typeof predicate != 'function') {
throw new TypeError('Expected a function');
throw new TypeError('Expected a function')
}
return function(...args) {
return !predicate.apply(this, args);
};
return !predicate.apply(this, args)
}
}
export default negate;
export default negate