title: map array of objects to table in react without using name of the key names
body: <p>I have an array and I would like to render this array with  without using keys because keys will not be the same every time. Even the number of keys in the next array will not be same. I have tried using map function but could not achieve success with key names.</p>
  <pre><code>
  const array1 = [{&quot;BRANCH&quot;:&quot;84&quot;,&quot;NUM&quot;:&quot;1356&quot;,&quot;COST&quot;:&quot;25&quot;,&quot;METHOD&quot;:&quot;15&quot;},
  {&quot;BRANCH&quot;:&quot;3&quot;,&quot;NUM&quot;:&quot;2134&quot;, &quot;COST&quot;:&quot;425&quot;,&quot;METHOD&quot;:&quot;5&quot;},
  {&quot;BRANCH&quot;:&quot;4&quot;,&quot;NUM&quot;:&quot;1905&quot;,&quot;COST&quot;:&quot;325&quot;,&quot;METHOD&quot;:&quot;1&quot;},
  {&quot;BRANCH&quot;:&quot;56&quot;,&quot;NUM&quot;:&quot;2350&quot;,&quot;COST&quot;:&quot;14&quot;, &quot;METHOD&quot;:&quot;9&quot;}] 
  
  const array2 = [{&quot;UNIT&quot;:&quot;84&quot;, &quot;COST&quot;:&quot;25&quot;},
  {&quot;UNIT&quot;:&quot;3&quot;,&quot;COST&quot;:&quot;425&quot;},
  {&quot;UNIT&quot;:&quot;4&quot;,&quot;COST&quot;:&quot;325&quot;},
  {&quot;UNIT&quot;:&quot;56&quot;,&quot;COST&quot;:&quot;14&quot;}]
  
  </code></pre>
  <p>Please suggest me map function to iterate over this array to render into Table. Thanks</p>