js dictionary to extract the same key bvalues

Solutions on MaxInterview for js dictionary to extract the same key bvalues by the best coders in the world

showing results for - "js dictionary to extract the same key bvalues"
Mercy
15 Apr 2018
1const car = [{id: "1", brand: "Opel"}, {id: "2", brand: "Haima"},{id: "3", brand: "Toyota"}];
2
3const brands = car.map(({ brand }) => brand);