Answers for "iterate through a dictionary javascript"

8

javascript for loop over dictionary

var dict = {'a': 1, 'b': 2, 'c' : 3}; 
for([key, val] of Object.entries(dic)) {
  console.log(key, val);
}
Posted by: Guest on September-06-2020
-1

gdscript iterate over dictionary

for x in dictionary.values():
	print(x)
Posted by: Guest on October-03-2020

Code answers related to "iterate through a dictionary javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language