Skip to content

Instantly share code, notes, and snippets.

@goofmint

goofmint/index.js

Created Feb 8, 2018
Embed
What would you like to do?
const ary = [];
ary.push(1);
ary.push(2);
ary.push(3);
for (let {index, value} of ary.eachWithIndex()) {
console.log(index, value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment