That’s the second time this week that I forgot that the i in a for (let i in array) loop in JavaScript is set to a string, not a number. It’s for enumerable string properties, not for proving a fancy way to iterate using the index.
That’s the second time this week that I forgot that the i in a for (let i in array) loop in JavaScript is set to a string, not a number. It’s for enumerable string properties, not for proving a fancy way to iterate using the index.