In Firebug 2.0.9:
> $('div')
Object[div.constrain, div#container, div#logo-events.constrain.clearfix, ...]
But:
> function MyObject() {}
undefined
> new MyObject()
MyObject {}
Notice - curly braces instead of square. Why? Seems like jQuery object is "subclassed" from JavaScript Array. But how it is done?
UPDATE #0
I can achieve square brackets like that:
> MyObject.prototype = Array.prototype
[]
> new MyObject()
Object[]
Can somebody explain the meaning of this?