Javascript – Diff an array of objects so that it matches another without recreating any valid objects
Let's say I have 2 arrays each of which holds a few different objects class Object1 {} class Object2 {} class Object3 {} class Object4 {} class Object5 {} class Object6 {} const arrayA = [ new Object1(), new Object2(),…