Last active
November 9, 2016 19:00
-
-
Save robskidmore/96ea2cee805d1abe24fd7a39f7fe8e66 to your computer and use it in GitHub Desktop.
merge-array-of-objects-discard-duplicates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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