javascript - What is the role of weak set in ES6?
某草草
某草草 2017-05-19 10:43:42
0
1
555

Weak set is not iterable, you cannot use for-of, keys(), values(), forEach() to traverse values

So what is its function? Is it just about storing objects?

某草草
某草草

reply all(1)
迷茫

The performance of set is higher than that of map. Its value is reflected when you need to store non-duplicate data and you don’t care about the order of data!

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template