📅  最后修改于: 2022-03-11 15:02:01.530000             🧑  作者: Mango
var myArr = [{name: 'rich', secondName: 'james'}, {name: 'brian', secondName: 'chris'}];
var mySecondArr = myArr.map(x => x.name);
console.log(mySecondArr);