Skip to content

Commit

Permalink
Manual cleanup of sum.js
Browse files Browse the repository at this point in the history
  • Loading branch information
curran committed Jan 2, 2021
1 parent 9326bef commit 4efecbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sum.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export function sum(v) {
let i = v.length,
s = 0;
let i = v.length;
let s = 0;
while (i-- > 0) if (!isNaN(v[i])) s += v[i];
return s;
}

0 comments on commit 4efecbd

Please sign in to comment.