Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Javascript
vuejs use set to prevent duplicates
August
Programming language:
Javascript
2021-06-11 22:03:17
0
Q:
vuejs use set to prevent duplicates
Jubious
Code:
Javascript
2021-05-17 11:59:44
const uniqueAddresses = Array.from(new Set(addresses.map(a => a.id)))
0
Tags
use
set
Related
use set to remove duplicates in javascript
Lodash remove duplicates from array
New to Communities?
Join the community