iterate through a dictionary js code example
Example 1: javascript for loop over dictionary
var dict = {'a': 1, 'b': 2, 'c' : 3};
for([key, val] of Object.entries(dic)) {
console.log(key, val);
}
Example 2: gdscript iterate over dictionary
for x in dictionary.values():
print(x)