Open Goddesen opened 2 years ago
The use of for .. in to iterate over an array does not work if there are extra functions defined on the prototype of array. Use a naive old school iterator instead. Could use for .. of if IE support is not an issue.
for .. in
for .. of
The use of
for .. in
to iterate over an array does not work if there are extra functions defined on the prototype of array. Use a naive old school iterator instead. Could usefor .. of
if IE support is not an issue.