title: TypeError: (intermediate value).keys(...).map is not a function
body: <p>I am getting a strange error, could somebody help me fix this out?</p>
  
  <pre><code>const myArray = new Array(4)
      .keys()
      .map((v, i) =&gt; (
            console.log('print:', v, i)
        )
      )
  console.log('myArray print: ', myArray);
  </code></pre>
  
  <p>I am getting this error:</p>
  
  <pre><code>TypeError: (intermediate value).keys(...).map is not a function
  </code></pre>
  
  <h2>update:</h2>
  
  <p>i want to use the <code>i</code> to look up some stuff from another existing array.</p>
  
  <pre><code>const myArray = new Array(4)
      .keys()
      .map((v, i) =&gt; ({
        name: i
        })
      )
  console.log('myArray print: ', myArray);
  </code></pre>
  
  <h2>edit:</h2>
  
  <p>this question is not a duplicate, It is trying to iterate over a certain number and create a new object using the iterations.</p>