-
-
Save lazypanda-instance/a6b1f0c4de0db4918cac96885428b570 to your computer and use it in GitHub Desktop.
remove duplicate object from array in javascript
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
uniqueArray = a => [...new Set(a.map(o => JSON.stringify(o)))].map((s: any) => JSON.parse(s)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment