Some problem about item

Hi
I got some question about how to know if an actor own an item with javascript.

I've moved this thread to Learning Javascript. Thank you.

if an actor own an item? I don't understand. Do you mean actor has an item equipped? Party has items in possession?
if an actor own an item? I don't understand. Do you mean actor has an item equipped? Party has items in possession?
"Party has items in possession" is what I mean.
$gameParty._items[x]
$gameParty._items[x]
Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/some-problem-about-item.83308/