Using CoffeeScript, I would like to be able to iterate over the static methods and variables of a class. More specifically, I'd like to gain access to all of the functions in Math.
I'm looking for functionality similar to:
for x in Math
console.log (x + ": " + Math[x])
Is this possible?
From a previous stackoverflow question: How can I list all the properties of Math object?
Object.getOwnPropertyNames( Math )
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With