Convert number to a reversed array of digits
<p>I've developed this codepen (<a href="http://codepen.io/PiotrBerebecki/pen/qZjojV?editors=0010" rel="nofollow">http://codepen.io/PiotrBerebecki/pen/qZjojV?editors=0010</a>) trying to solve the following JavaScript problem:</p>

<p><strong><em>Given a non-negative integer, return an array containing a list of independent digits in reverse order.
Example:
348597 => The correct solution should be [7,9,5,8,4,3]</em></strong></p>

<p>The function below apparently is incorrect as it returns ["7", "9", "5", "8", "4", "3"] - correct order but with quotes. How could I modify it so that it returns [7,9,5,8,4,3]?</p>

<pre><code>function digitize(n) {
  var initialArray = (""+n).split('');
  var reversedArray = [];
  for (var i = initialArray.length - 1; i &gt;= 0; i--) {
    reversedArray[i] = initialArray.shift();
  }
  return reversedArray;
}
</code></pre>