how to get a single value from an object array code example
Example 1: return an object from an array javascript
myArray.find(item => item.isAstronaut)
Example 2: find function in javascript
find array function
myArray.find(item => item.isAstronaut)
find array function