itrate over objects in Js code example
Example: js 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
}
}