Skip to content

Commit 638d1d4

Browse files
SunJieMingSunJieMing
authored andcommitted
fixed merge conflict
2 parents 1475c94 + a2e73ac commit 638d1d4

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/arrays.js

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

5656
/* Extra Credit */
57+
5758
const flatten = (elements) => {
5859
// Flattens a nested array (the nesting can be to any depth).
5960
// Example: flatten([1, [2], [3, [[4]]]]); => [1, 2, 3, 4];

src/closure.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ const limitFunctionCallCount = (cb, n) => {
3636
};
3737
};
3838

39+
/* Extra Credit */
40+
3941
const cacheFunction = (cb) => {
4042
// Should return a funciton that invokes `cb`.
4143
// A cache (object) should be kept in closure scope.

0 commit comments

Comments
 (0)