Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js dictionary to extract the same key bvalues

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

const brands = car.map(({ brand }) => brand);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #dictionary #extract #key #bvalues
ADD COMMENT
Topic
Name
3+9 =