Skip to content

Commit 6821f8e

Browse files
committed
Corrects ageDifference.js
1 parent 256867f commit 6821f8e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

ageDifference.js

-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
function average(array) {
2-
function plus(a, b) { return a + b; }
3-
return array.reduce(plus) / array.length;
4-
}
5-
61
var byName = {};
72
ancestry.forEach(function(person) {
83
byName[person.name] = person;

0 commit comments

Comments
 (0)