DEV Community

Anuj Pancholi
Anuj Pancholi

Posted on

Answer: How to pull a pot of gold out of a deeply nested object in js.

From what I understand, the object that you have is a deeply nested object and the array you have describes a path in that nesting. So, this method will return some result if it finds it, given the array of keys and the object (if there is indeed some "pot…

Top comments (0)