How to loop through properties of JavaScript Object : <p>I have an object such that, I want to make the Months false, on/before current month.</p>

<p>Before:</p>

<pre><code>var oObj = {
                "isJan" : true,
                "isFeb" : true,
                "isMar" : true,
                "isApr" : true,
                "isMay" : true,
                "isJun" : true,
                "isJul" : true,
                "isAug" : true,
                "isSep" : true,
                "isOct" : true,
                "isNov" : true,
                "isDec" : true
            }
</code></pre>

<p>Today is 5-Apr, hence object should be:</p>

<pre><code>            {
                "isJan" : false,
                "isFeb" : false,
                "isMar" : false,
                "isApr" : false,
                "isMay" : true,
                "isJun" : true,
                "isJul" : true,
                "isAug" : true,
                "isSep" : true,
                "isOct" : true,
                "isNov" : true,
                "isDec" : true
            }
</code></pre>
