Thanks for in-dept blurb on the differences between the JavaScript
Object object and Array. I was trying to dumb it down but your
explanation is better suited.
As for hacky I was merely looking at the source and the variable
named object that it expects as the first argument. Seems to me that
it
I find using the object is easier to read, also looking at the source
its really meant for objects to be used, you got lucky in that
object['days'] is also the same syntax used by array[0]. That is why
indexes would work for your array and not for the object and why the
property 'days' would
It's got nothing to do with luck. Arrays are implemented as a very
light veneer on top of Objects; the only real difference between them
is the literal syntax ([]) and the magic length property that counts
your numeric keys. (In fact, the numeric keys aren't really numbers,
since all object