Loop through an Objects properties

    var keys = Object.keys(nameOfObject);

    keys.forEach(function(key) {
       //do something with property key
    });

Add your comment