blob: cafec77b172e8b959aa5f7968bc9dd9e0ef9b998 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// https://developer.mozilla.org/en/New_in_JavaScript_1.8
let it = (i + 3 for (i in someObj));
try {
while (true) {
document.write(it.next() + "<br>\n");
}
} catch (err if err instanceof StopIteration) {
document.write("End of record.<br>\n");
}
function handleResults( results ) {
for ( let i in results )
;
}
handleResults( i for ( i in obj ) if ( i > 3 ) );
it = (1 for(a in x) for(b in y));
|