I thought my question would be answered with this or this but neither is what I'm looking for.
I have an object in Google Script, and want to iterate over each element:
var dict = {
"foo": "a",
"bar": "b"
};
for each key, element in dict{
print the key and the element
}
Is this possible?