A quick benchmark of some solutions to deduplicate a JS array. See this article for the explanation of the methods and the results.
The easiest way to execute the benchmark is to paste the source onto a codepen running on the browser (engine) you want to test. Look at the console for the results. Repeat this on how many browsers you want to test.
For Node, you need to have Node installed on your computer, then simply type
$ node deduplicateArray.js
- Miguel Albrecht - zapalote
This code is licensed under the MIT License - see the LICENSE.md file for details