Skip to content

Instantly share code, notes, and snippets.

@lazypanda-instance
Created February 14, 2021 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lazypanda-instance/a6b1f0c4de0db4918cac96885428b570 to your computer and use it in GitHub Desktop.
Save lazypanda-instance/a6b1f0c4de0db4918cac96885428b570 to your computer and use it in GitHub Desktop.
remove duplicate object from array in javascript
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