In Javascript, if there is an object with a lot of properties that can functions, how do you convert
- by Jian Lin
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.