Returns all user defined methods from an object.
Code copied/adjusted from following,
Usage:
const userDefinedMethods = require('user-defined-methods');
class Driver {
getLocation() {
return location.href;
}
}
userDefinedMethods(new Driver()) // returns ['getLocation']