Finds all method names on an object.
The object to inspect
Whether to traverse the prototype chain (default: false)
An array of property keys corresponding to functions
const methods = getMethods(myClassInstance); Copy
const methods = getMethods(myClassInstance);
Finds all method names on an object.