How to tell if a Game_Character is a Game_Event?

in Ace we had object.is_a?(class) which could be used to determine if a character was an event, player, vehicle or follower. I can't see anything similar in MV.


this._dataClass is used for items, skills, and equipment but doesn't seem to extend to characters.


Is there an easy way that's already available to tell?
Code:
this.constructor === Game_Event;
/edit: Also, JavaScript has "instanceof": https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Operators/instanceof
Thank you! 🙂


That was the last thing I needed. Plugin incoming in 3 ... 2 ...

Original thread: https://forums.rpgmakerweb.com/threads/how-to-tell-if-a-game_character-is-a-game_event.50257/