 <p>I think there are no problem with your loop. But perhaps with your object.</p> <p>Are you sure what properties has enumerable ? Try to execute this to check :</p> <pre><code>Object.getOwnPropertyDescriptor(voucher_reduction,'0'); </code></pre> <p>If it return undefined, the property was not exist. </p>