I want to update (replace) the objects in my array with the objects in another array. Each object has the same structure. e.g.
var origArr = [
I came here looking for exactly this, saw @Gruff Bunny 's technique and wondered if 'lodash' wouldn't perhaps be a superior option even to 'underscore'?
Lo and behold :
let result = _.unionBy(updatingArr, origArr, 'name');