1

Remove duplicates from an array

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