Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript WeakSets Are Not iterable

const weakSet = new WeakSet({a:1});

// looping through WeakSet
for (let i of weakSet) {

    // TypeError
    console.log(i);
}
 
PREVIOUS NEXT
Tagged: #javascript #WeakSets #Are #Not #iterable
ADD COMMENT
Topic
Name
6+1 =