js get object in array from item code example Example: javascript find object in array myArray.findIndex(x => x.id === '45');