There are two sets of objects that I need to work with:
First set of objects ---->
[{locationId: 1, locationName: "Bangalore"}, {locationId: 2, locationName: "Mumbai"}]
Second set of objects ----->
[{baseId: 1, baseUnit: "abc"}, {baseId: 2, baseUnit: ""}]
Is there a more efficient method in Angular 6 to extract the locationName from the first set of objects based on the baseId from the second set of objects, and then push this information into a new set of objects without using a traditional for loop?