blob: c0bd8fc5a302233a7d89e6d2a4066a8ae41ee7f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// for-of can be used to iterate over a Set twice.
var set = new Set(['a', 'b', 'c']);
var log = '';
for (let i = 0; i < 2; i++) {
for (let x of set)
log += x;
log += ';'
}
assertEq(log, 'abc;abc;');
|