I'am trying to find the index of my array by the function indexOf, but I can't get a right result.
var points =[
["2.408","38.8"],
["2.410","38.8"],
["2.410","38.76"]
];
var position = points.indexOf(["2.408","38.8"]);
I think it should return 0 rather than -1, so I campared the two array like blow.
console.log(points[0]===["2.408","38.8"])
Then I got false.
I don't understand why it's not the true.
I'll appreciate for your suggestion...