Is there a method or propertie to get all methods from an object? For example:
function foo() {} foo.prototype.a = function() {} foo.prototype.b = function()
In Chrome is keys(foo.prototype). Returns ["a", "b"].
keys(foo.prototype)
["a", "b"]
See: https://developer.chrome.com/devtools/docs/commandline-api#keysobject
Later edit: If you need to copy it quick (for bigger objects), do copy(keys(foo.prototype)) and you will have it in the clipboard.
copy(keys(foo.prototype))