Created
August 1, 2019 06:56
-
-
Save akumbhani66/a2f01dc2f4154d809c50fe57bd46ef53 to your computer and use it in GitHub Desktop.
Removing duplicate entries from array of object by one of object key.
This file contains hidden or 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
const uniqueAddresses = Array.from(new Set(arrayTemp.map(ele => ele.a))).map(subEle => { | |
return arrayTemp.find(ele => ele.a === subEle) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment