Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
let arr = [1,2,3,4,5];
arr.forEach((data,i,arr) => {
console.log(i);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment