js return array as object code example Example: return an object from an array javascript Click to copymyArray.find(item => item.isAstronaut)