How to iterate over this object
<p>I have this object:</p>

<pre><code>var navArray = {
  '#item1' : 0,
  '#item2' : 1,
  '#item3' : 2,
  '#item4' : 3,
  '#item5' : 4,
  '#item6' : 5
}
</code></pre>

<p>The ident var in the code below is a number and I need to find out which property it corresponds to in the array...so if ident is 1 I want to get #item2 back..</p>

<p>How do I do this?</p>

<pre><code>var navArray = {
  '#item1' : 0,
  '#item2' : 1,
  '#item3' : 2,
  '#item4' : 3,
  '#item5' : 4,
  '#item6' : 5
}
if(typeof(ident) === "number") {
    for(i in navArray) {
    }
}
</code></pre>
