List built in JavaScript standard object methods
问题 Is there a way to list all JavaScript standard object method? I mean I'm trying to get all the built in methods of String so I was thinking and I did tried doing this: for( var method in String ) { console.log( method ); } // I also tried this: for( var method in String.prototype ) { console.log( method ); } But no luck. Also if there is a way that solution should work for all ECMAScript standard classes/objects. Edit: I want to point out that the solution should work in server side