What is the best way to find all object in an array that fulfill my search criteria
I have an array called bookingArray that contains object. Here you can see how it look like.
bookingArray[i] = { Objectid: value.Objectid, Beskr: hinderArray[j].Beskr, Fromtime: value.Fromtime.substr(0, 19), Totime: value.Totime.substr(0, 19), Confirmed: value.Confirmed, VesselID: value.VesselID, Bookingid: value.Bookingid, Connectionid: value.Connectionid, Vesselname: value.VesselName, ID:0
Later in the program add update the ID in some of these so it contains for example 10_100_1,
10_100_2 and 10_100_3.
Now if I want to find these three object that contains 10_100 what is the best way.
I wonder if JQuery has some good functions for this mattter or do I have to loop through the array and check each object.
//Tony