how to iterate through object values javascirpt 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
}
}