DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
remove duplicates from array javascript
arr
.
filter
(
(
v
,
i
,
a
)
=>
a
.
findIndex
(
t
=>
(
t
.
place
===
v
.
place
&&
t
.
name
===
v
.
name
)
)
===
i
)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#remove
#duplicates
#array
#javascript
ADD COMMENT
Topic
COMMENT
Name
8+7 =
Submit