title: Push object keys and its values to array
body: <p>I have an object like this:</p>
  <pre><code>{
   &quot;id&quot;: 23,
   &quot;name&quot;: &quot;Jacob&quot;,
   &quot;link&quot;: {
       &quot;rel&quot;: &quot;self&quot;,
       &quot;link&quot;: &quot;www.abc.com&quot;
   },
   &quot;company&quot;:{
         &quot;data&quot;:{
             &quot;id&quot;: 1,
             &quot;ref&quot;: 324
         }
   }
  </code></pre>
  <p>I want to store each key with its value to an array in javascript or typescript like this
  [[&quot;id&quot;:23], [&quot;name&quot;:&quot;Jacob&quot;], [&quot;link&quot;:{......, ......}]] and so on</p>
  <p>I am doing this so that I can append an ID for each.
  My best guess I would loop through the array and append an ID/a flag for each element, which I don't know how to do as well.... how to address this issue ? thanks</p>