title: Using JavaScript, how tdo you convert an Object into an Array
body: <p>I am creating a helper function to convert a Object of data into an array using javascript. Here is a sample of the data that I want to convert.</p>
  <pre><code>const DATA = {
    {
      title: 'Jun 23, 2021',
      data: [
        {
          messageSentTime: '6:32 PM',
          senderAvatar: 'okef8ia9fkil3drzxemy',
          senderMessage: 'FsvaevseVefwe'
        }
      ]
    },
    {
      title: 'Jun 23, 2021',
      data: [
        {
          messageSentTime: '6:32 PM',
          senderAvatar: 'okef8ia9fkil3drzxemy',
          senderMessage: 'FsvaevseVefwe'
        }
      ]
    },
  }
  </code></pre>
  <p>Here is what I want to update the data to.</p>
  <pre><code>const DATA = [
    {
      title: 'Jun 23, 2021',
      data: [
        {
          messageSentTime: '6:32 PM',
          senderAvatar: 'okef8ia9fkil3drzxemy',
          senderMessage: 'FsvaevseVefwe'
        }
      ]
    },
    {
      title: 'Jun 23, 2021',
      data: [
        {
          messageSentTime: '6:32 PM',
          senderAvatar: 'okef8ia9fkil3drzxemy',
          senderMessage: 'FsvaevseVefwe'
        }
      ]
    },
  ]
  </code></pre>
  <p>Here is what I tried to convert the data.</p>
  <pre><code>Object.keys(dateOfConversation).map(i =&gt; dateOfConversation[i])
  </code></pre>
  <p>I am guessing I need to use the reduce method, and I do not know how to use it. Any help would be greatly appreciated.</p>