I have an array which holds sub-arrays, the main array has custom keys; used as an identifier. The problem is I can't access the array with these keys set e.g:
array.length - returns 0 when clearly it has values
In console:
[evt1: Array[0], evt2: Array[0]]
evt1: Array[0]
evt2: Array[0]
When changed back to a standard index (0,1,2), the array can be accessed - and performs as normal. Why is this happening?
Thanks
[4,5,6].hasOwnProperty('1') //true