No.
1 - That is not JavaScript syntax. I don't know where you got it from, but if it's valid for anything, it's some other programming language.
2 - You don't want to prevent the
user from doing anything, you don't want it used
on someone (e.g. a mummy). (unless your item only has a scope of The User to begin with)
That being said, I was wrong - I thought the VisuStella Item Core incorporated the content from Yanfly's Item Requirements, but it does not. It appears that VisuStella doesn't have anything to support those effects.
So you'd use VisuStella Battle Core, instead. If you want the item to be able to target living party members that don't have your mummy state - we'll say that's ID 42 - you'd give the item this:
Code:
<JS Targets>
targets = $gameParty.aliveMembers().filter(actor => !actor.isStateAffected(42));
</JS Targets>
I believe this
also only works in battle, so if the item can be used from the menu and you want to control that, you'll have to come up with another solution. I've seen threads with little plugins for it, I think that portion of the code should be the same between MV and MZ so you can try anything you find with a Google.