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

@@ -1,7 +1,7 @@
import baseSum from './.internal/baseSum.js';
import baseSum from './.internal/baseSum.js'
/** Used as references for various `Number` constants. */
const NAN = 0 / 0;
const NAN = 0 / 0
/**
* This method is like `mean` except that it accepts `iteratee` which is
@@ -15,14 +15,14 @@ const NAN = 0 / 0;
* @returns {number} Returns the mean.
* @example
*
* const objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
* const objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }]
*
* meanBy(objects, ({ n }) => n);
* meanBy(objects, ({ n }) => n)
* // => 5
*/
function meanBy(array, iteratee) {
const length = array == null ? 0 : array.length;
return length ? (baseSum(array, iteratee) / length) : NAN;
const length = array == null ? 0 : array.length
return length ? (baseSum(array, iteratee) / length) : NAN
}
export default meanBy;
export default meanBy