📅  最后修改于: 2022-03-11 15:04:14.441000             🧑  作者: Mango
let users = [
{
name: 'John',
age: 20,
},
{
name: 'Richard',
age: 25,
}
];
let names = users.map(user => user.name);
// ['John', 'Richard]