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