MZ Searching within console log

Hi, do you guys have any tips for searching a property within an object?
For example, i know there is this property which has "skeleton" string within its name, and it's belong to object Game_Actor. I want to search for all of Game_Actor's properties those has "skeleton" string within its name.
Is there a way to do this within Console Log?
Maybe something like this?
JavaScript:
for (p in Game_Actor.prototype) if (p.includes('skeleton')) console.log(p);
Details on for...in can be found here:
I don't know if this will work for MZ, I used it on MV:

JavaScript:
var found = [];
for ( var i = 1; i < $gameActors._data.length; i++ ) {
    if ( $gameActors.actor(i).name().includes('skeleton')) {
        found.push(i);
    }
}
console.log(found);

It will create and log to the console an array named 'found' that contains the Id of any actor with skeleton in the name.
for (p in Game_Actor.prototype) if (p.includes('skeleton')) console.log(p);
Thank you @caethyril What about nested properties? I mean to also get properties of object that nested within another object. For ex:
for (p in Game_Actor.prototype) if (p.includes('skeleton')) console.log(p);
return 'skeleton weapons' & 'skeleton armors' objects, which also contains properties of themself.
Thank you @caethyril What about nested properties? I mean to also get properties of object that nested within another object. For ex:
for (p in Game_Actor.prototype) if (p.includes('skeleton')) console.log(p);
return 'skeleton weapons' & 'skeleton armors' objects, which also contains properties of themself.
@TheouAegis What is it ultimately that you are trying to achieve?

Original thread: https://forums.rpgmakerweb.com/threads/searching-within-console-log.138225/