I have an array like this
var a = [[1, 0], [3, 0], [5, 0], [7, 0]];
I am running a very simple line of indexOf()
. However, I keep getting -1 although the test value I'm using does exist in the array.
var i = a.indexOf([1, 0]);
console.log("INDEX: ", i);
Did I make a mistake somewhere ?