
Apr
25
Why is using "for...in" for array iteration a bad idea?
Published 17:04 Apr 25, 2022 by @ezra.
#Programming# The reason is that one construct:
var a = []; // Create a new empty array.
a[5] = 5; // Perfectly ...