IF (EnemyWeaponClass) == ?

If there a way to make an IF statement that is triggered by the enemy's weapon's class? E.g. The "dagger of shadow" has the class "dagger", and the statement is triggered if the enemy has a weapon with the class of "dagger". If possible in js code, what would the variable for the enemy's weapon class be?
Enemies don't have weapons.  If you have weapons for your enemies, 1: what plugin are you using, and 2: please provide a link to its thread.

Original thread: https://forums.rpgmakerweb.com/threads/if-enemyweaponclass.70200/