📜  字典数组通过键 javascript 代码示例获取值

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

代码示例1
const car = [{id: "1", brand: "Opel"}, {id: "2", brand: "Haima"},{id: "3", brand: "Toyota"}];

const brands = car.map(({ brand }) => brand);