How do I check to see if an element is in an array of an object (with external files in place) : Javascript... I can't figure out why the following always goes to my else statement, instead of my initial if condition.

EXTERNAL JAVASCRIPT FILE #1

    var player = {
	    inventory: [
		    "Bullet"
	    ],
    };
HTML FILE

    <button id="use_bullet" onclick="use.call('Bullet')">Use Bullet</button>

EXTERNAL JAVASCRIPT FILE #2

    function use() {
	    alert(this); // Returns "Bullet"
	    alert(player.inventory); // Returns "Bullet"
	    if (this == player.inventory) {
            document.getElementById("inventory02").innerHTML = "You USED" + this;
		    alert("in inventory"); // She skips this
		
	    } else {
            document.getElementById("inventory02").innerHTML = "You don't have" + this;
		    alert("not in inventory"); // She always does this
	    }
    }	