Skip to content

Instantly share code, notes, and snippets.

@toddzebert
Last active March 20, 2017 06:47
Show Gist options
  • Save toddzebert/b4584ca79f89fcd72c4a45dff1990e01 to your computer and use it in GitHub Desktop.
Save toddzebert/b4584ca79f89fcd72c4a45dff1990e01 to your computer and use it in GitHub Desktop.
A quick overview of JavaScript Iterables

An Iterable is an object that has a method Symbol.iterator which is factory for Iterators. Native Iterables include which include Arrays, Stings, Set & Map (but not weak variants).

An Iterator includes a "pointer" for traversing an Iterable in the form of a next method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment