JavaScript Objekte iterieren / Iterate JavaScript Objekts

Wie iteriert man durch JS Objekte? Hier ein bißchen Beispielcode dazu: / How do you iterate JS Objects? Here some example code on that:

for (var key in jsObject) {
       // skip loop if the property is from prototype
       if (!jsObject.hasOwnProperty(key)) continue;

       var obj = jsObject[key];
       for (var prop in obj) {
              // skip loop if the property is from prototype
              if(!obj.hasOwnProperty(prop)) continue;

              // your code
              alert(prop + " = " + obj[prop]);
       }
}