I"m building a plugin for Photoshop, which is based on layers. To do this, I need to build an array with each layer which returns true when going through a function (checking the name for matches).
How could I basically "recursively" go through the object, and child objects, until I've been through everything? (Putting "selected" items in an array in the process).
The object is just a plain javascript object, with tons of objects in it (and further more inside it).