I have an array defined like so:
var numeric = [{ Value: "0" }, { Value: "1" }, { Value: "2" }, { Value: "3" }];
I'm trying to determine if a particular value exists in this array. I've tried all of the following lines which all return -1
.
numeric.indexOf(1);
numeric.indexOf("1");
numeric.indexOf({Value: "1"});
Assume I have no control over how the array is defined. How can I determine if a value exists in this particular kind of array?