I want to merge related objects from two arrays.
var arr1 = [{thing: 'house', material: 'wood', location: 'earth'}, {thing: 'brick-wall', material: 'brick', location: 'moon'}];
var arr2 = [{property: 'made from wood', location: 'earth'}, {property: 'made from brick', location: 'moon'}];
Is it possible to join the two arrays in a way that will add the property value from arr2 to arr1 where arr1.location === arr2.location
?