Skip to content

Instantly share code, notes, and snippets.

@quieterkali
Created July 28, 2017 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quieterkali/c41320bdcfcbb0621bb3d9c81a7b541d to your computer and use it in GitHub Desktop.
Save quieterkali/c41320bdcfcbb0621bb3d9c81a7b541d to your computer and use it in GitHub Desktop.
reading the good part
Function.prototype.method = function (name, func) {
this.prototype[name] = func;
return this;
};
@quieterkali
Copy link
Author

quero saber para onde esta apontando: this.prototype[name] = func;
Eu fiz uns testes e percebi que this == Function.prototype.
Function.prototype por sua vez é igual a function() {}

@quieterkali
Copy link
Author

entao eu fico me perguntando quem é this.prototype ????

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment