I have two Array of objects as follows.
Array of object 1 ----> [{locationId:1,locationName:"Bangalore"},{locationId:2, locationName:"Mumbai"}]
Array of object 2 -----> [{baseId:1,baseUnit:"abc"},{baseId:2,baseUnit:""}]
Is there any short method where I can locationName from first Array, using baseId from Array 2 and push that to new Array of objects,in angular 6. I dont want to use for loop.