Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/arrays.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const filter = (elements, cb) => {
// Return an empty array if no elements pass the truth test
};

/* Extra Credit */
/* STRETCH PROBLEM */

const flatten = (elements) => {
// Flattens a nested array (the nesting can be to any depth).
Expand Down
2 changes: 2 additions & 0 deletions src/callbacks.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ const contains = (item, list, cb) => {
// contains checks if an item is present inside of the given array/list.
// Pass true to the callback if it is, otherwise pass false.
};

/* STRETCH PROBLEM */

const removeDuplicates = (array, cb) => {
// removeDuplicates removes all duplicate values from the given array.
// Pass the duplicate free array to the callback function.
Expand Down
2 changes: 1 addition & 1 deletion src/closure.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const limitFunctionCallCount = (cb, n) => {
// The returned function should only allow `cb` to be invoked `n` times.
};

/* Extra Credit */
/* STRETCH PROBLEM */

const cacheFunction = (cb) => {
// Should return a funciton that invokes `cb`.
Expand Down
2 changes: 1 addition & 1 deletion src/objects.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const pairs = (obj) => {
// http://underscorejs.org/#pairs
};

/* Extra credit */
/* STRETCH PROBLEMS */

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