title: Converting JavaScript object with numeric keys into array
body: <p>I have an object like this coming back as a JSON response from the server:</p>
  <pre class="lang-js prettyprint-override"><code>{
    &quot;0&quot;: &quot;1&quot;,
    &quot;1&quot;: &quot;2&quot;,
    &quot;2&quot;: &quot;3&quot;,
    &quot;3&quot;: &quot;4&quot;
  }
  </code></pre>
  <p>I want to convert it into a JavaScript array like this:</p>
  <pre><code>[&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;]
  </code></pre>
  <p>Is there a best way to do this? Wherever I am reading, people are using complex logic using loops. So are there alternative methods to doing this?</p>