I want to create a wrapper in TypeScript around console.log like this:
var mylog = (...args: any[]) => { console.log(args); };
So I loglike this:
if (!!mylog) mylog('text', variableA, variableB);
And can set it to null to disable logging.
Problem is: this doesn't work!
if(!!myLog)and instead set it to an empty function if you want to disable logging?