1 pointOther than what I described? I'm sure you could come up with something that is more complex, but I don't know why you would. If you're looking for a built-in recursive object key search, I don't believe there is one. You would need to roll your own.
1 pointIf you're talking about Array.map, that's only available on arrays, not Objects. Maybe you can convert an Object to an array, but regular Objects don't have a map method. You can return the keys of an object though and loop through them that way. It sounds like you need a recursive function that checks if you're dealing with an array or object and searches appropriately. It would call itself if it found another array or object.