I know this is possible in python, but can i get a list of methods for a javascript object?
You can loop over the properties in the object and test their type.
for(var prop in whatever) {
if(typeof whatever[prop] == 'function') {
//do something
}
}
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