I am wondering how Set in ES6 is implemented under the hood. For example, if we do new Set(arr) and there are duplicates in arr, how Set removes them?
Asked
Active
Viewed 37 times
1
bohkoval
- 365
- 1
- 9
-
3it just does not insert them – skyboyer Jan 10 '19 at 10:25