Accessing an Array with non number index

Hi

I have an array a with index r, s, …

I can access the array values with a[r] or a~~.~~
But I do NOT get a result when I access it with a.length; or a.join(", "); for example!
This seems to be a bug, I should be also getting the length or the string representation of the array if it’s not defined with number indeces, shouldn’t I?
Any experience from you?
Best regards, Robert

This is not a bug, because this is just the way javascript works.

If you are doing```
a[“r”] = 1

You are not filling the array, but you add an attribute to the array object. It is just a different notation for doing```
a.r = 1

To get the number of attributes of your array object, you should create your own method.