Demo
View Source
Remove duplicate elements from an array.
var fruits = ['apple', 'orange', 'peach', 'apple', 'strawberry', 'orange'];
Note 'orange' is duplicate in fruits array. Click to remove duplicate elements from fruits array:
Remove Duplicate