check type of each item in map before executing function javascript code example
Example: js foreach key value
Object.keys(obj).forEach(function (key) {
// do something with obj[key]
});
Object.keys(obj).forEach(function (key) {
// do something with obj[key]
});