2

Remove duplicates from an array

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