for example,
$(document) // [ #document ] : document object in array
typeof $(document) // "object"
$(document).constructor // function Object() { [native code] } or function (a,b) { return some function; }
If value is array, it have to be Array constructor.
It’s not an array like object. because array like object just has array property, not like [].
How can it be?
add:
If you can, show simple example code, please.
like
a = ...
console.log(a) // [ ... ]
console.log(a.constructor) // function Object or something
Take a look at the jQuery source.
$(document)creates a cloned jQuery object of the document element and then makes and returns an array-like object.