How to create a function that does not inherit methods from Function.prototype by default in TypeScript/JavaScript?
My target: I would like to create a function that does not inherit methods from Function.prototype by default, or at least hide them in a TypeScript environment. By ‘hide them’, I mean that when I access the function using dot notation, I do not want to see the default methods like apply, bind, call. To […]