MZ Visustella Skill targeting

Using Visustella I am going to use “void Shift” from yanfly tips and tricks. I have gotten the code for it from Trihans thread all that works perfect. But I need to make it not usable on bosses as that would be a little OP. I know Visustella has a <JS Targets> but it needs code. Is there anyway somebody could whip me up something that’s like
if target.isStateAffected(39) not usable.

I already have a Boss state that I’ve put in all bosses to stop them from being chain stunned etc. So just a code that checks for that state if they have it you cannot target them with “Void Shift”.

Thanks again.
This thread was moved from RPG Maker MZ Support to JavaScript/Plugin Support.
Okay ended up using https://forums.rpgmakerweb.com/threads/caethyrils-mz-plugins.125657/
with

<target filter: return !target.states().includes($dataStates[39]);>

My Boss state was 39 so now that skill can be used on anything that DOES NOT HAVE state 39
still learning but apparently if you put a "!" at the start it flips the boolean statement. Pretty slick.

Original thread: https://forums.rpgmakerweb.com/threads/visustella-skill-targeting.177447/