for prop in obj code example
Example: javascript loop through object
for (var property in object) {
if (object.hasOwnProperty(property)) {
// Do things here
}
}
for (var property in object) {
if (object.hasOwnProperty(property)) {
// Do things here
}
}