title: How can i create an array of objects with the object entries?
body: <p>I want to create an array of objects from the this.props.data, trying to do that i can't make the map put the key values which are normally generated by the object.entries.</p>
  
  <p>I have a screenshot with the code, and some console logs and the results they show instead of {_key:"0"}, i want it to be {numberOfElements:"12"}.
  Thanks.</p>
  
  <p>This is the problematic part of the code</p>
  
  <pre><code>import React, { Component } from 'react';
  export default class DataTable extends Component{
    render(){
      const data= Object.entries(this.props.data).map((_key,_value)=&gt;({
        _key:String(_value)
      }));
      console.log(data)
      console.log(Object.entried(this.props.data))
      return &lt;div&gt;&lt;/div&gt;
    }
  
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/rcteK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rcteK.png" alt="enter image description here"></a></p>
  
  <p><strong>Console Output :</strong></p>
  
  <p><a href="https://i.stack.imgur.com/GjEpq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GjEpq.png" alt="e"></a></p>