let users = [ { name: 'John', age: 20, }, { name: 'Richard', age: 25, } ]; let names = users.map(user => user.name); // ['John', 'Richard]