solved! I just used filter :) thank you!
I am trying to get my code to return an array of only the names of those in the array (stored as objects within the array) who are over 21 (can drink).
I have managed to get it to return the whole object for each person who is over 21, but I ONLY want the names. Can anyone steer me in the right direction?