3 ms·
if you've ever written a for loop like this, you'd see the exact same issue. for (i = 0, total = arr.length; i < total; i++) { item = arr[i]; }
by phpnode 12y ago
if you've ever written a for loop like this, you'd see the exact same issue.
for (i = 0, total = arr.length; i < total; i++) {
item = arr[i];
}
This will also iterate over gaps in the array. Is this a bug?