📅  最后修改于: 2022-03-11 15:02:40.189000             🧑  作者: Mango
const people = [{ name: "Kyle", age: 26 }, { name: "Jill", age: 35 }]
const peopleNames = []
for (let i = 0; i < people.length; i++) {
peopleNames[i] = people[i].name
}
console.log(peopleNames)
// ["Kyle", "Jill"]