enumerate node js

Solutions on MaxInterview for enumerate node js by the best coders in the world

showing results for - "enumerate node js"
Lorenzo
06 May 2017
1const foobar = ['A', 'B', 'C'];
2
3for (const [index, element] of foobar.entries()) {
4  console.log(index, element);
5}