Skip to content

Commit 801106a

Browse files
committed
EC to STretch Problem
1 parent 7b755c8 commit 801106a

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/arrays.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const filter = (elements, cb) => {
3434
// Return an empty array if no elements pass the truth test
3535
};
3636

37-
/* Extra Credit */
37+
/* STRETCH PROBLEM */
3838

3939
const flatten = (elements) => {
4040
// Flattens a nested array (the nesting can be to any depth).

src/callbacks.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ const contains = (item, list, cb) => {
2424
// contains checks if an item is present inside of the given array/list.
2525
// Pass true to the callback if it is, otherwise pass false.
2626
};
27+
2728
/* STRETCH PROBLEM */
29+
2830
const removeDuplicates = (array, cb) => {
2931
// removeDuplicates removes all duplicate values from the given array.
3032
// Pass the duplicate free array to the callback function.

src/closure.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const limitFunctionCallCount = (cb, n) => {
1818
// The returned function should only allow `cb` to be invoked `n` times.
1919
};
2020

21-
/* Extra Credit */
21+
/* STRETCH PROBLEM */
2222

2323
const cacheFunction = (cb) => {
2424
// Should return a funciton that invokes `cb`.

src/objects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const pairs = (obj) => {
2323
// http://underscorejs.org/#pairs
2424
};
2525

26-
/* Extra credit */
26+
/* STRETCH PROBLEMS */
2727

2828
const invert = (obj) => {
2929
// Returns a copy of the object where the keys have become the values and the values the keys.

0 commit comments

Comments
 (0)