The new Set de-reuse method in js
![](https://www.7ix.net/wp-content/uploads/2021/06/city-6220689_640.jpg)
ES6 provides a new data structure, Set, which is similar to an array, but the values of the members are unique and there are no duplicate values; Set itself is a constructor that generates the Set data structure. Array de-duplication…