I have some code that determines if the player has bought something or not in the store. I want to give that player the item if any of the values == true
var store = {
'bought' : [false, false, false, false, false, false],
'purchased': 0,
}
i was trying something like if (store[bought[1]]) == true but i suck at coding so it doesnt work