DEV Community

loading...

Discussion on: Daily Challenge #273 - Remove Duplicates

Collapse
mosfa profile image
open

function solve(list) {
  return list.filter((a, b) => array.indexOf(a) == b)
};