Skip to content

passed all four#44

Closed
ceylonsullen wants to merge 4 commits into
bloominstituteoftechnology:masterfrom
ceylonsullen:master
Closed

passed all four#44
ceylonsullen wants to merge 4 commits into
bloominstituteoftechnology:masterfrom
ceylonsullen:master

Conversation

@ceylonsullen

Copy link
Copy Markdown

partner Mohammed Abumtary

@ryan-hamblin ryan-hamblin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done!

Comment thread src/project-4.js
const removeDuplicates = (collection, cb) => {
// Write a function called removeDuplicates that removes all duplicate values from the given array.
// Pass the array to the callback function. Do not mutate the original array.
const newArr = collection.slice();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love this nested loops! Shows that you understand the problems. Lots of people don't realize that .includes() or .indexOf() are doing these loops under the hood!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants