How to iterate (keys, values) in JavaScript?
<p>I have a dictionary that has the format of</p>
<pre><code>dictionary = {0: {object}, 1:{object}, 2:{object}}
</code></pre>
<p>How can I iterate through this dictionary by doing something like</p>
<pre><code>for ((key, value) in dictionary) {
    //Do stuff where key would be 0 and value would be the object
}
</code></pre>