title: How to Convert Object to Array of Object? in Angular
body: <p>I have a problem in my code, the problem is I want to convert an object to an array, but according to the example below for the object can be seen in the image link.</p>
  
  <p><a href="https://i.imgur.com/j5wDhNQ.png" rel="nofollow noreferrer">https://i.imgur.com/j5wDhNQ.png</a> (the object output) </p>
  
  <p>example: </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>{
    [
      0:{"name": "fiqih", "diskusi": 5}
      1:{"name": "Nah", "diskusi": 2}
      2:{"name": "Nah2", "diskusi": 4}
      etc..
    ]
  }</code></pre>
  </div>
  </div>
  </p>