How to check the user's state in RPG maker MV

Hey everyone, this is super embarrassing to ask, but I'm using some custom formula's for skills that check if the user is inflicted with a certain state, but I don't know the javascript code for that. Can anyone help me out with that?

Also it would be really helpful if you could point me to an website or forum page that has stuff listed like how to check an actor's attack stat or check the state of an enemy. Thanks in advance.
user.isStateAffected(StateID)

I apologize for not knowing of a list. I usually comb through the default code to find what I need if I don't already know.
@shockra Thanks for the help! How do you look through the default code? I'm completely lost when it comes to coding 😛
In the Game folder, go into the js folder. The various code files are in there. The code you were seeking is under rpg_objects. The majority of mechanical functions is found in rpg_objects. It takes some practice to understand what to look for, but once you do, it's very useful.
@shockra Thanks! I Really appreciate the help.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-check-the-users-state-in-rpg-maker-mv.84102/