My JSON array looks something like this:
[
{ value: 1, hidden: false },
{ value: 2, hidden: false },
{ value: 3, hidden: false }
]
I am trying to determine if the integer 2 is present in this array. What would be the most efficient method to accomplish this?