Like how the jQuery
uses the jQuery
method for return a jQuery
object, but how a format of collection (Array
, NodeList
,...). I wonder how jQuery does.
That way I can convert a NodeList
object, for example, on a personal object.
jQuery("li") //=> [<li>...</li>, <li>...</li>, <li>...</li>]
jQuery("li") instanteof jQuery //=> true
jQuery("li") instanteof Array //=> false
jQuery("li") instanteof NodeList //=> false
jQuery("li") instanteof HTMLCollection //=> false