In Javascript, if there is an object with a lot of properties that are functions, how do you convert

Posted by Jian Lin on Stack Overflow See other posts from Stack Overflow or by Jian Lin
Published on 2010-06-13T07:27:10Z Indexed on 2010/06/13 7:52 UTC
Read the original article Hit count: 126

Filed under:
|

In Javascript, if an object has lots of properties that are functions:

var obj = { foo: function() { ... },
            bar: function() { ... },
              ...
          }

then how can you get an array of names of those functions? That is, an array

["foo", "bar", ... ]

thanks.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about stringification