Hello, can anyone tell me how to use has() in the array?
I'm having trouble checking if there is an item in the array :/
var myArray = [["notebook",0],["book",1],["phone",2]]
var listID = 1
if myArray.has(myArray[listID]):
myArray.remove(listID)
pass
In this example I'm trying to check if an index 1 in array
only that Godot points this error >> Invalid get index '1' (on base: 'Array').
Can someone help me please!?