In Python, I can use the .values() method to iterate over dictionary values.
For example:
mydict = {'a': [3,5,6,43,3,6,3,], 'b': [87,65,3,45,7,8], 'c': [34,57,8,9,9,2],} values = mydict.values():
Where values contains:
[ [3,5,6,43,3,6,3,], [87,65,3,45,7,8], [34,57,8,9,9,2], ]
How can I get only dictionary values ββin Javascript?
EDIT
In my original print example, it was not visible what I would like to do. I only need a list / array of values ββin the dictionary.
I understand that I can iterate over a list and create a new list of values, but is there a better way?