In lua, I can do the following:
_G.print("Hello world")
print("Hello world")
And it will both print the same string to the screen. Is there a way to access the global object in javascript? I mean like
_G.console.log === console.log
true
It will be really helpful in my use case (I want to prevent any code injection on my website by scanning the global object for changes)