How to display all methods in a JavaScript object?
<p>I wanted a way in which I could get all methods available in a Javascript Object like following</p>

<pre><code> alert( show_all_methods( Math ) );
</code></pre>

<p>should alert abs, acos, asin, atan, atan2, ceil, cos, exp, floor, log, max, min, pow, random,round, sin, sqrt, tan.</p>
