Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
ES6 Iterators sample
let s = “Hello”;
let sIterator =  s[Symbol.iterator]();
console.info( sIterator.next().value ) //H
console.info( sIterator.next().value ) //e
console.info( sIterator.next().value ) //l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment