Skip to content

Instantly share code, notes, and snippets.

@robskidmore
Last active November 9, 2016 19:00
Show Gist options
  • Save robskidmore/96ea2cee805d1abe24fd7a39f7fe8e66 to your computer and use it in GitHub Desktop.
Save robskidmore/96ea2cee805d1abe24fd7a39f7fe8e66 to your computer and use it in GitHub Desktop.
merge-array-of-objects-discard-duplicates
let newArray = oldArray1.concat(oldArray2.filter((item) => {
return item.value !== duplicate.value;
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment