chrome devtool (browser console), what does the value of double brackets [[]] represent and how to get it?
chrome devtool (browser console), what does the value of double brackets [[]] represent and how to get it?
if you get it, that's it:
set1.entries()
the content is as follows:
SetIterator {1, 2, 3, 4}
__proto__: Set Iterator
[[IteratorHasMore]]: true
[[IteratorIndex]]: 0
[[IteratorKind]]: "entries"
[[Entries]]: Array(4)
0: 1
1: 2
2: 3
3: 4
length: 4
this method returns a new Array Iterator object containing key / value pairs for each index in the array
reference link: js array summary of common operation methods-- entries
the answer here is very clear
Previous: What is the principle of packaging html5 into app applications?
Next: Error installing vue scaffolding offline using vue init