Get the note box off a game enemy

Is there a function on either battler, enemy or something where I can get the contents of the note box? I didn't see anything
Is there a function on either battler, enemy or something where I can get the contents of the note box? I didn't see anything
One cool thing about MV is that the DataManager already gets some MetaData from the Notes box for you.

It follows the format

<foo:bar>The Data object will have a .meta.foo property that equals to bar. You can use multiple of those to set up multiple properties.

Then you can set up a method like this:

Game_Enemy.prototype.getFoo = function() {        if (typeof $dataEnemies[this._enemyId].meta.foo !== 'undefined')        {            return $dataEnemies[this._enemyId].meta.foo;        }        return null;    };Alternatively, you can also set up just

<foo>and the DataManager will assign true to that property.

But anyway, if you do want to access the Note field, it's data.note.

Code:
console.log($dataEnemies[1].note)
This should log the contents of the Note field of the enemy at index 1.

Original thread: https://forums.rpgmakerweb.com/threads/get-the-note-box-off-a-game-enemy.48106/