for (var property in object) { if (object.hasOwnProperty(property)) { // do stuff } }
Source: http://stackoverflow.com/questions/8312459/iterate-through-object-properties
Bruce Ng's software development blog
An archive of solutions of programming problems I have faced in my career
for (var property in object) { if (object.hasOwnProperty(property)) { // do stuff } }
Source: http://stackoverflow.com/questions/8312459/iterate-through-object-properties