Javascript – Merge two arrays into one with unique values, and change the id key
I have two arrays of objects, the objects within these arrays have a slightly different keys but share same id. What i am trying to do is merge these two arrays into one that contains all the elements from both…