MZ Checking if an Actor has an Armor Type Equipped

Greetings. I'm trying to create code that checks if the actor has a certain equipment type. I'm using VisuStella's Skills and States Core, specifically the <JS Passive Condition> notetag. It is a passive state that should only activate if the actor does not have the Shield armor type equipped.

I've tried the following codes, but neither has worked for me. I cannot figure out where I went wrong.

Code A
<JS Passive Condition> condition = !$gameActors.actor(4).equips()[1] </JS Passive Condition>

Code B
<JS Passive Condition> condition = !user.equips == 1 </JS Passive Condition>
i can only speak about rpg mv but i think the code is similar about this:

Spoiler: old post
"this.equips()" is about all equip, but this cant check anything
"this.equips()[0]" is about the first equipslot
(that should be the weapon slot by default)

if you want to check the "Armor-type" of the first slot and if its id is "1":
if (this.equips()[0].atypeId === 1)

if you want to check all equip slots, you need to make a script with using
"for i ++" to check all equip slots
(i am not adding an example for this,sry.. how to use that script, can be found in forum)

or use several codes with only changing the slot number "0" to "1" and "2" ect
if (this.equips()[0].atypeId === 1)
if (this.equips()[1].atypeId === 1)
if (this.equips()[2].atypeId === 1)
ect


but related to what you showed, you probably wont need "if ()" and can use this instead:
condition = this.equips()[0].atypeId === 1;

also replace "this" with "user" or "$gameActors.actor(4)"
=> i only used "this" as PLACEHOLDER!


sry i dont use VisuStella's plugin , and wasnt sure what you need to use instead of "this".. i just used your examples as explanation


EXTRA info
atypeId = armorType
wtypeId = weaponType
etypeId = equipType


you can also check the data stuff in console f8 (if mz uses a console idk)
Spoiler: screenshot
Screenshot_1.png

edit
use trihans solution, its much better and shorter than mine^^
JavaScript:
<JS Passive Condition>
    condition = user.armors().some(armor => armor.atypeId === 1);
</JS Passive Condition>
Thank you @dopan and @Trihan! Trihan's code worked perfectly. The state now works as intended.

Original thread: https://forums.rpgmakerweb.com/threads/checking-if-an-actor-has-an-armor-type-equipped.143809/