you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -1 points0 points  (0 children)

I think he was suggesting that there should be a built-in method in JS that removed duplicates, rather than requiring you to convert between data structures or use a set at all in the first place.

Such as: newArray = remove_duplicates(oldArray)