title: Why would I ever use Array.toSource?
body: <p>Apparently there's a non-standard method of <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array" rel="nofollow"><code>Array</code></a>, <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toSource" rel="nofollow"><code>toSource</code></a>. As per the example..</p>
  
  <blockquote>
  <pre><code>var alpha = new Array('a', 'b', 'c');
  
  alpha.toSource();   // ['a', 'b', 'c']
  </code></pre>
  </blockquote>
  
  <p>.. it seems to do the same thing as <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify" rel="nofollow"><code>JSON.stringify</code></a>:</p>
  
  <pre><code>var alpha = new Array('a', 'b', 'c');
  
  JSON.stringify(alpha);
  </code></pre>
  
  <p>So why would I want to use <code>Array.toSource</code>?</p>