How can I access the name of a running function that is attached to a prototype?
See my best attempt below. It outputs an empty string.
Client.prototype.setAllMain = function() {
console.log(this.setAllMain.name);
}
How can I access the name of a running function that is attached to a prototype?
See my best attempt below. It outputs an empty string.
Client.prototype.setAllMain = function() {
console.log(this.setAllMain.name);
}