MV How do I check if one of my party members has a specific skill.

In my project, the player is able to interact with certain objects in the world. Some of said objects require atleast one
member of the players party to know a specific skill, I'm unsure on how to do that. And using the conditional branch to
check each specific actor is quite tedious. Any help would be appreciated.

So far these are the scripts I've tried. I'm not good with JavaScript/coding at all, so forgive me if the answer was in my face.

$gameActors.actor($gameParty._actors[1](function(actor) { return actor && actor.isLearnedSkill(112) })

$gameActors.actor($gameParty._actors[2]).isLearnedSkill(112)
Active party members is:

$gameParty.members().some(actor => actor.hasSkill(ID))
Active party members is:

$gameParty.members().some(actor => actor.hasSkill(ID))
Thank you so much, I really appreciate this

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-check-if-one-of-my-party-members-has-a-specific-skill.165904/