Say I have an array of Person objects and the person objects have properties firstName, lastName, and age. Now suppose I want an array of the firstnames of all these person objects. How can I convert this array of Person objects into an array of firstname strings?
Is there some combination of array functions I can use to do it or do I just have use a for loop and create a new array?