title: How to get the n-th item of a javascript list
body: <p>I'm working on something where I need to go through each item of a javascript list by number, get the name AND value of each item, and then do something with that. The list looks like this:</p>
  <pre><code>{&quot;test-item-1&quot;: false, &quot;test-item-2&quot;: false, &quot;test-item-3&quot;: false}
  </code></pre>
  <p>I don't know what order the items will be in though, or even what items there are. So I have to find each item by number. Can anyone help me figure out how to do that?</p>