Source code
Revision control
Copy as Markdown
Other Tools
// for-of works on slow arrays.
var a = ['a', 'b', 'c'];
a.slow = true;
var log = '';
for (var x of a)
log += x;
assertEq(log, 'abc');
// for-of works on slow arrays.
var a = ['a', 'b', 'c'];
a.slow = true;
var log = '';
for (var x of a)
log += x;
assertEq(log, 'abc');