title: Difference between toArray and makeArray in jquery
body: <p>I'm trying to convert the DOM element as an collections of object. But I don't know what the main difference between toArray() and makeArray()</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;div id="firstdiv"&gt;
     &lt;div&gt;foo1&lt;/div&gt;
     &lt;div&gt;foo2&lt;/div&gt;
     &lt;div&gt;foo3&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I used the following code to convert the nodes to an array:</p>
  
  <p><strong>JQUERY</strong></p>
  
  <pre><code>console.log($("#firstdiv &gt; div").toArray());
  console.log($.makeArray($("#firstdiv").html()));
  </code></pre>
  
  <p>I can't quite understand the difference between them, and I've searched for this question but not found any clear explanation. </p>
  
  <p>Thanks in advance.</p>