Javascript error, and no clue as to what it's meaning
<p>I'm creating a small script for Google Spreadsheets that will move numbers into one column and strings into the other.  Should be pretty basic, but I'm just barely playing around with JS and naturally I've come across something that doesn't make sense to me whatsoever. </p>

<p>Here's the code.</p>

<pre><code>function moveData() {
    var sheet = SpreadsheetApp.getActiveSheet();
    var dataToMove = sheet.getRange("A1:A5003");
    var lastRow = sheet.getLastRow();


    for (var i = 0; i &lt;= lastRow - 1; i++)
    {
        var unparsedValue = dataToMove[i];
        if(unparsedValue != "" &amp;&amp; typeof unparsedValue === "number" &amp;&amp; !isNaN(unparsedValue))
        {
            var parsedValue = unparsedValue;
            Logger.log(parsedValue);

        }
    }
}
</code></pre>

<p>It's not all done obviously, but throws an error at <code>var unparsedValue = dataToMove[i];</code></p>

<p>Error is as follows: Class "$Proxy810" has no public instance field or method named "0"</p>

<p>what is $Proxy810, and if I understand correctly why would it have a field, or method named "0"??</p>

<p>Little frustrating and any insight into this would be appreciated.</p>
