finding an object from array based on id code example Example: js get object by id from array myArray.find(x => x.id === '45');