how do you return object of an array in javascript code example Example: return an object from an array javascript myArray.find(item => item.isAstronaut)