1

Remove duplicates from an array

Function JavaScript 1 revisions 267 6 months ago 6 months ago
const removeDuplicates = arr => arr.filter((item, index) => index === arr.indexOf(item));