Why do you need to use .hasOwnProperty anyway?
var map = {
a: 1,
b: 2,
c: 3
}
for (var key in map) {
console.log(map[key]);
}
outputs 1
2
3
in the console, like I expect.