This is how I am currently searching:
function RemoveQuestion(question)
{
$.each(questionCollection, function (index, item)
{
var indexToRemove;
if (item["PprID"] == question["PprID"])
{
//This question needs to be removed.
indexToRemove = index;
return false;
}
});
questionCollection.splice(indexToRemove, 1);
}
I feel like looping through every array instance, then looking at the array inside of it might be a bit slow.
Any help is appreciated.
Thanks
Kevin