How to loop a key/value object in javascript
<p>var user = {};</p>

<p>now I want to create a <code>setUsers</code> method that takes a key/value pair object and initializes the <code>user</code> variable.</p>

<pre><code>setUsers = function(data) {

   // loop and init user

}
</code></pre>

<p>where data is like:</p>

<pre><code>234: "john", 23421: "smith", ....
</code></pre>
