Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vuejs use set to prevent duplicates

const uniqueAddresses = Array.from(new Set(addresses.map(a => a.id)))
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #vuejs #set #prevent #duplicates
ADD COMMENT
Topic
Name
4+6 =