Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Symbol.iterator with arguments object - Coding Blast -
function doSomething(a, b, c) {
let it = arguments[Symbol.iterator]();
console.log(; // {value: 13, done: false}
console.log(; // {value: 15, done: false}
console.log(; // {value: 17, done: false}
console.log(; // {value: undefined, done: true}
doSomething(13, 15, 17);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.