Last active
January 27, 2019 05:08
-
-
Save hk-skit/34503739086ef553ef9e81fad9dd2b6d to your computer and use it in GitHub Desktop.
Data Structures with Iterable Protocol
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
class IteratorDemo { | |
// Iterator Method with @@iterator key | |
// i.e. Symbol.iterator constant | |
[Symbol.iterator]() { | |
// Method stub which returns an iterator object. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment