Skip to content

Commit a2e73ac

Browse files
SunJieMingSunJieMing
authored andcommitted
Updated instructions spacing
1 parent 590f2a4 commit a2e73ac

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/arrays.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const filter = (elements, cb) => {
3434
};
3535

3636
/* Extra Credit */
37+
3738
const flatten = (elements) => {
3839
// Flattens a nested array (the nesting can be to any depth).
3940
// Example: flatten([1, [2], [3, [[4]]]]); => [1, 2, 3, 4];

src/closure.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const limitFunctionCallCount = (cb, n) => {
1919
};
2020

2121
/* Extra Credit */
22+
2223
const cacheFunction = (cb) => {
2324
// Should return a funciton that invokes `cb`.
2425
// A cache (object) should be kept in closure scope.

0 commit comments

Comments
 (0)