JavaScript obtient un objet où

myArray = [{'id':'73','foo':'bar'},{'id':'45','foo':'bar'}, etc.]

myArray.find(x => x.id === '45').foo;
Ham-Solo