Skip to content

Jason Metten All Pass Except Matching Leaves - #15

Closed
metten0 wants to merge 5 commits into
bloominstituteoftechnology:masterfrom
metten0:master
Closed

Jason Metten All Pass Except Matching Leaves#15
metten0 wants to merge 5 commits into
bloominstituteoftechnology:masterfrom
metten0:master

Conversation

@metten0

@metten0 metten0 commented Nov 10, 2017

Copy link
Copy Markdown

No description provided.

@Velsu Velsu left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great job on this sprint challenge. Excellent answers to the questions. All tests pass and code is clear and concise. You gave checkMatchingLeaves a try and i presume You were very close.

Good job 👍

Comment thread Answers.md
3. Undefined
4. Number
5. String
**Arrays are unique** because they are actually objects and can hold multiple values at one time. They are objects in that they have a property and value, where the property is the index and the value is what is at alement of said index.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great answers.

Comment thread src/challenges.js
// `cb` should only ever be invoked once for a given set of arguments.
const cache = {};
return (...args) => {
if (args[0] in cache) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Very well thought.

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.

4 participants