2

Remove duplicates from an array

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