user-defined-methods
v1.0.0
Published
Returns all user defined methods from an object.
Downloads
47
Readme
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']