title: How to get a value from an object by its position in another object in Node
body: <p>In a script I've got an object containing several other objects, that all have the same structure. It looks like this:</p>
  
  <pre><code>wordlist = {word1: {count:2},
  word2: {count:5},
  word3: {count:3},
  word4: {count:2}}
  </code></pre>
  
  <p>I want to generate an array of just the counts of each word, so it would look like [2, 5, 3, 2].</p>
  
  <p>Is there any way to do this in Node.js? </p>
  
  <p>I would imagine using a for-loop where each iteration goes to the next sub-object, but how would I select the sub-object by its position in the main object?
  In an array you can type arrayName[2] to get the third entry in that array, is a similar thing possible with an object?</p>