title: What object does jquery return exactly?
body: <p>I've been working on my own personal JavaScript library for a while now, and it works fine. But I've been wondering about the jQuery return object.</p>
  
  <p>Lets say you have a few divs in your DOM and you select them with <code>$("div")</code> jquery actually returns the selected nodes (as an object/array?) in the console log and you can mouse-over them to see where they are in the documents.</p>
  
  <p>My object actually returns the entire object itself, so if you call <code>kj("div")</code> (Where <code>kj</code> is my object name) it shows up like this in the console log:</p>
  
  <pre><code>    &gt; kj
      &gt; elements: Array[10]
      &gt; length : 10
      &gt; more stuff
  </code></pre>
  
  <p>My question is, how can I make it return something like jQuery?</p>
  
  <p>Thanks in advance.</p>