DEV Community

Discussion on: JavaScript - remove duplicated lines

Collapse
 
bytebodger profile image
Adam Nathaniel Davis • Edited

In JavaScript, nearly any time that you are wanting to de-dupe an array (of any kind), the very first tool you reach for should be Set()