title: Javascript Get length of list of items in object?
body: <p>I currently have a Javascript object that looks like this:</p>
  
  <p><code>Object {0: 8, 1: 9, 2: 10}</code></p>
  
  <p>I am trying to get the number of individual items in the object (i.e. 3) but can't figure out how to do so. Since the object isn't an array, I can't just call <code>.length()</code>. I tried <code>huntsList[2].toString().split('.').length</code> to split the items at the commas and count them in this way but it returns 1, since it converts the entire object to a single string that looks like this: <code>["[object Object]"]</code>.</p>
  
  <p>Any suggestions for how I can accomplish this are appreciated. </p>