1.0.0 • Published 6 years ago
user-defined-methods v1.0.0
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']
1.0.0
6 years ago