title: How to turn an object with keys as indexes into an array in JavaScript?
body: <p>I want to convert an object with indexes as keys, into an array in JavaScript.</p>
  <p>For example:</p>
  <p>Input: <code>obj ={1: 'banana', 2: 'apple',3:'orange' }</code></p>
  <p>Output: <code>['orange','apple','banana' ]</code></p>
  <p>I have tried with 'Array.prototype.reverse.apply(obj)', but not able to get the result.</p>
  <pre><code> var obj ={1: 'banana', 2: 'apple',3:'orange' };
   var res =Array.prototype.reverse.apply(obj);
   console.log(res); // return the same object, not reverse
  </code></pre>
  <p>What are the other usages of Array.prototype.reverse()?</p>