Javascript equivalent of Python's iterkeys() dictionary method
        Posted  
        
            by saltycrane
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by saltycrane
        
        
        
        Published on 2010-03-09T05:39:59Z
        Indexed on 
            2010/03/09
            5:51 UTC
        
        
        Read the original article
        Hit count: 289
        
JavaScript
|python
In Python I can use the iterkeys() method to iterate over the keys of a dictionary. 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],}
for k in mydict.iterkeys():
    print k
gives me:
a
c
b
How can I do something similar in Javascript?
© Stack Overflow or respective owner