Just improvedMade the fastestbest/bestfastest part of this answer to be more re-usable/clear & clear:
function getElByPropVal(arrmyArray, prop, val){
for (var i = 0, length = arrmyArray.length; i < length; i++) {
if (arr[i][prop]myArray[i][prop] == val){
return arr[i];myArray[i];
}
}
}