A utility to extract and list all methods from JavaScript objects, including inherited methods from the prototype chain