Javascript – How to get an object property value from an array using the value of another property
I want to get the value of a property from an array of objects using the value of another property let's say I have the following array: const objArray = [ {car: 'BMW', price: 2000}, {car: 'VW', price: 3500}, {car:…