title: Weird usage of Array.of() and Array.from()?
body: <p>There are two new methods of <code>Array</code> in <code>ES6</code>, <code>Array.of()</code> and <code>Array.from()</code>. The difference usage of them are mentioned in this <a href="https://gist.github.com/rwaldron/1074126" rel="nofollow">page</a>.</p>
  
  <p>However, I am confused with the usage of <code>Array.of</code> in this <a href="https://gist.github.com/rwaldron/1074126#file-array-goodies-js-L127" rel="nofollow">line</a></p>
  
  <pre><code>// usage of Array.of
  console.log(
      Array.of( "things", "that", "aren't", "currently", "an", "array" )
  ); // ["things", "that", "aren't", "currently", "an", "array"]
  </code></pre>
  
  <p>What if we do it as below, </p>
  
  <pre><code>console.log(
      [ "things", "that", "aren't", "currently", "an", "array" ]
  ); // ["things", "that", "aren't", "currently", "an", "array"]
  </code></pre>
  
  <p>The same result we can get as <code>console.log(Array.of(...))</code>. Any advantage of using <code>Array.of</code> here?</p>
  
  <p>Also confused with the usage of <code>Array.from</code> in this <a href="https://gist.github.com/rwaldron/1074126#file-array-goodies-js-L42" rel="nofollow">line</a></p>
  
  <pre><code>var divs = document.querySelectorAll("div");
  console.log(
      Array.from( divs )
  );
  </code></pre>
  
  <p>What if there is no <code>Array.from</code> in the above codes.</p>
  
  <pre><code>var arr = [1, 2, 3];
  console.log(Array.from(arr)); // [1, 2, 3]
  console.log(arr); // [1, 2, 3]
  </code></pre>
  
  <p>Any advantage of using <code>Array.from</code> here?</p>