Get the 'type' of an equipped weapon/armor

Say I've got a sword, whose weapon type is 'sword', or 'leather armor' whose type is 'light armor' The player has the sword and the leather armor equipped. how can I return the type 'sword', or type 'light armor' of the player's current equipment?
$gameActors.actor(1).weapons()[0].wtypeId

this will return actor 1, first weapon equipped weapon id
Awesome! Thanks 🙂

Original thread: https://forums.rpgmakerweb.com/threads/get-the-type-of-an-equipped-weapon-armor.50031/