Skip to content

Commit 3623cc2

Browse files
authored
Merge pull request #1917 from Logan-Schelly/master
Fixed typos on last Array Methods task.
2 parents e7e0fc8 + 333cb9d commit 3623cc2

File tree

2 files changed

+3
-2
lines changed
  • 1-js/05-data-types/05-array-methods/12-reduce-object

2 files changed

+3
-2
lines changed

1-js/05-data-types/05-array-methods/12-reduce-object/_js.view/test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ describe("groupById", function() {
88
];
99

1010
assert.deepEqual(groupById(users), {
11-
john: {id: 'john', name: "John Smith", age: 20}
11+
john: {id: 'john', name: "John Smith", age: 20},
1212
ann: {id: 'ann', name: "Ann Smith", age: 24},
1313
pete: {id: 'pete', name: "Pete Peterson", age: 31},
1414
});
1515
});
1616

1717
it("works with an empty array", function() {
18+
users = [];
1819
assert.deepEqual(groupById(users), {});
1920
});
2021
});

1-js/05-data-types/05-array-methods/12-reduce-object/task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ let usersById = groupById(users);
2323
// after the call we should have:
2424
2525
usersById = {
26-
john: {id: 'john', name: "John Smith", age: 20}
26+
john: {id: 'john', name: "John Smith", age: 20},
2727
ann: {id: 'ann', name: "Ann Smith", age: 24},
2828
pete: {id: 'pete', name: "Pete Peterson", age: 31},
2929
}

0 commit comments

Comments
 (0)