If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Get Help > Ask for Help button located on the challenge.
The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.
I can see that the strings still won’t match because the obj key pairs are not in the same order as the array of objects. I’m still stuck though. Have tried Object.entries, keys && values.
And I finally solved it. I only took 11 days to decide I should probably revisit the fundamentals based on the hints @dhess gave. Feel like a sense of achievement lol
Took me 3 - 4 hours of intense focus to get this one… It really, really helps if you read it out loud. And also walk away from the problem and come back.
Instruction 2 reads: *The whatIsInAName function should return a new array containing only the objects from the collection that have all the key–value pairs present in the source object.
*
This is telling us the collection (the first parameter containing all the objects in an array) needs to be filtered so that every element in the source object is contained in the collection.
It confused me especially, because I was so stuck on chaining and I really underestimated what these higher order functions could do. I ended with so much commented out code just in case I wanted to go back to it, but then it all came down to a one line answer. Nested higher order functions, destructuring, and Object methods all in one… felt like an early capstone.
This also just caught me off guard. There were some sorta tough ones before this, but none that took me this long to solve. Hopefully my mind is molded for future problems now.