with lodash:
_.map(myObj.cars, x => x.id)
with es6:
myObj.cars.map(x => x.id)
4
solved How do i get values of id’s And also how do i merge multiple objects into single array into javascript [closed]
with lodash:
_.map(myObj.cars, x => x.id)
with es6:
myObj.cars.map(x => x.id)
4
solved How do i get values of id’s And also how do i merge multiple objects into single array into javascript [closed]