When I give console.log
to the variable overlays
, I have the following return:
[Oh, 36: Oh, 37: Oh, 97: Oh, 98: Oh, 99: Oh, 100: Oh, 101: Oh]
0: Oh
36: Oh
37: Oh
97: Oh
98: Oh
99: Oh
100: Oh
101: Oh
length: 102
__proto__: Array[0]
I should access this array through the value of your keys (36,37,97,98,99,100,101) and may be different.
When trying to access them with the method below, the value of the keys comes only as (0,1,2,3,4,5,6)
$.each(overlays, function(a, b) {
console.log(overlays[a]);
})