How to get the index of the current item in a for...of looping statement in JavaScript?
Originally Published Here ๐!
To get the index of the current item being looped in a for...of looping statement in JavaScript, you need to make the iterable into a key: value pair in case of strings or an Array iterator in case of an array and then u...
melvingeorge-me.hashnode.dev2 min read