Having read
How does jQuery accomplish chaining of commands? and how does jquery chaining work?
I am still left to wonder how something like this is possible in jQuery
var a = $('body')
// a returns [<body></body>], an array.
a.click()
// Seems like this should return an error if a returns an array, not a function.
The linked SO answers have only told me how to do things like
a.b().c()
It's the a()
I still don't understand. I understand that chaining works by returning this
but then how does it also return an array by itself?