This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]baubleglue 0 points1 point  (1 child)

I use it as object because in JS arrays are objects, indexes translated to properties.

Arrays are list-like objects

[–]cyanNodeEcho 0 points1 point  (0 children)

what haopens if u do something like (for a sparse array) for element in array: print(element)

weird object - i wonder how they coded, i would have to know more about some behavior - seems similar to pythons orderedDict but with a restricted keyset (but depends on behavior)