Avatar for Leon Mika
Leon Mika
Software engineer in Melbourne, Australia.
About Now Archive Follow More Search Stats

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.

January 15, 2026 10:21pm
Leon Mika Leon Mika