So I have an object (EDIT: originally called it a "hash") like
newHash =
{item1: "spam",
item2: "everything"
}
and I want to return just "spam" and "everything".
It seems it doesn't work to write a for loop like this:
for (var x in newHash) {return newHash[x].value}
Thanks!
EDIT : replaced the word "hash" in question with "Object" as per popular convention.