iterate properties and values of object javascript 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
}
}