Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created February 8, 2018 06:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofmint/d78ebf82becb92a4961f227312cc1742 to your computer and use it in GitHub Desktop.
Save goofmint/d78ebf82becb92a4961f227312cc1742 to your computer and use it in GitHub Desktop.
class Hello {
constructor() {
this.ary = ['a', 'b', 'c'];
}
* [Symbol.iterator](){
for (let v of this.ary) {
yield v + v;
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment