Skip to content
This repository was archived by the owner on Aug 31, 2019. It is now read-only.

incomplete#50

Closed
novaferg wants to merge 1 commit intobloominstituteoftechnology:masterfrom
novaferg:master
Closed

incomplete#50
novaferg wants to merge 1 commit intobloominstituteoftechnology:masterfrom
novaferg:master

Conversation

@novaferg
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Contributor

@seanchen1991 seanchen1991 left a comment

Choose a reason for hiding this comment

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

What you have looks good. Don't forget to remove console logs before committing your code.

When you get some extra time between sprints, I'd definitely encourage you to come back to finish up this lab; these are important foundational concepts.

// Return the new array.
const newArray = [];
for (let i = 0; i < elements.length; i++) {
newArray.push(cb(elements[i], i, elements));
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.

You don't need to pass the entire elements array to the callback function.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants