2

Remove duplicates from an array

Function JavaScript 1 revisions 48 a month ago a month ago
const removeDuplicates = arr => arr.filter((item, index) => index === arr.indexOf(item));