.find(x=>x.Id == "1") doesn't work angular 10 code example Example: javascript get array object by id myArray.find(x => x.id === '45').foo;