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
$(document)is "not an array like object" - if you look at the actual jQuery source you'll find it is an array-like object and not an array...$(document)is an instance ofjQuery.fn.initwhich has had0andlengthproperties added. If it was anArrayit would have array methods like.join()and it doesn't. Look at the source code.