|
Okay, so suppose I've got a class with a bunch of members like this: I want a function listMembers(myobj) that will list the members in it like this. If I made another class or passed in an existing class, it should do the same thing, regardless of the class. This seems incompatible with strict typing (how do you specify the type of input to a function like that?) but I feel confident that there's some way around it. Any thoughts?
(comments are locked)
|
|
Here. However, this is in C# so you have to convert it to Javascript, but it should work. This ought to be correct. Maybe some simple errors
May 11 '12 at 02:29 PM
raoz
(comments are locked)
|
