📌  相关文章
📜  js循环对象数组提取值 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:01.530000             🧑  作者: Mango

代码示例1
var myArr = [{name: 'rich', secondName: 'james'}, {name: 'brian', secondName: 'chris'}];

var mySecondArr = myArr.map(x => x.name);
console.log(mySecondArr);