Possible Duplicate:
Find object by id in array of javascript objects
I have a javascript array, where each new item added to the array gets the next incremental number. An example would be as follows (I hope Im writing this correctly):
ArrayofPeople[0] = [{"id": "529", "name": "Bob"}];
ArrayofPeople[1] = [{"id": "820", "name": "Dave"}];
ArrayofPeople[2] = [{"id": "235", "name": "John"}];
The array is named "ArrayofPeople". Basically, multiple data points are stored for each person.
What I'm trying to do is 'if id "820" is found in ArrayofPeople, true else false.
How would this be done?