javascript forEach

Iterate over object properties:

var customObject = {'a': '55', 'b': '77'};
 
Object.keys(customObject).forEach(function(prop) {
    console.log(customObject[prop]);
});

Iterate over array elements:

var customArray = [55, 77];
 
customArray.forEach(function(arrayVal, arrayIndex) {
    // handle each array item
}