Created
May 28, 2013 21:55
-
-
Save past/5666483 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Foo() {} | |
Foo.prototype.iterator = function() { | |
// yield 1; | |
// throw StopIteration; | |
} | |
var f = new Foo(); | |
console.log([i for (i of f)]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment