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

10
sum.js
View File

@@ -1,5 +1,5 @@
import baseSum from './.internal/baseSum.js';
import identity from './identity.js';
import baseSum from './.internal/baseSum.js'
import identity from './identity.js'
/**
* Computes the sum of the values in `array`.
@@ -10,13 +10,13 @@ import identity from './identity.js';
* @returns {number} Returns the sum.
* @example
*
* sum([4, 2, 8, 6]);
* sum([4, 2, 8, 6])
* // => 20
*/
function sum(array) {
return (array && array.length)
? baseSum(array, identity)
: 0;
: 0
}
export default sum;
export default sum