const index = array.findIndex((param)=> param.name == "jimmy") /* param will iterate on every value of the array looking for that one element that fits the criteria that is indicated in arrow function besides it */