title: Mapping Array in Javascript with sequential numbers
body: <p>The following code:</p>
  
  <pre><code>let myArray = Array.apply(null, {length: 10}).map(Number.call, Number);
  </code></pre>
  
  <p>Creates the following Array:</p>
  
  <pre><code>[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
  </code></pre>
  
  <p>I just don't understand why.  I can't find anything on the internet that explains this behavior.  Does anyone know why this works the way it does?  Perhaps a link to some documentation?</p>