Iterate over values of object

It’s not a map. It’s simply an Object.

Edit: below code is worse than OP’s, as Amit pointed out in comments.

You can “iterate over the values” by actually iterating over the keys with:

var value;
Object.keys(map).forEach(function(key) {
    value = map[key];
    console.log(value);
});

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)