re: How to remove duplicate elements from array javascript VIEW POST

VIEW FULL DISCUSSION
 

Don't use map unless you're returning something: use forEach instead.
Also remember you can use for...of too.

code of conduct - report abuse