How to Obtain the States from a Battler?

Let's say I have a Battler object called "myBattler".

How would I be able to obtain one or all of the states that have afflicted this Battler.

I found the following:

Game_BattlerBase.prototype.states = function() {    return this._states.map(function(id) {        return $dataStates[id];    });};but I can't seem to figure out how to use it to find the Battler's states.

I've tried "myBattler.states()" and "myBattler.states(3)" to no avail. 

How do I do it?

Also, once I've found a State's ID, how can I use it to create a State object itself?
$gameActors.actor(1)._states returns an array of actor 1's states

Original thread: https://forums.rpgmakerweb.com/threads/how-to-obtain-the-states-from-a-battler.49466/