How can I get an array of objects containing a certain property value that are nested in another object in JavaScript? [closed]
I have an object with a bunch of nested objects, some of which have their own nested objects. I need to write a function that accepts the outermost object and returns an array of all objects that are nested inside it that satisfy a given condition. I've been banging my head against the desk for an hour with only vague ideas but at this point I just don't know how to solve this.
Via Active questions tagged javascript - Stack Overflow https://ift.tt/dvVfGw8
Comments
Post a Comment