📜  js字典提取相同的键bvalues - Javascript代码示例

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

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

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