Open AlikDex opened 5 years ago
Hmmm... the use of self is fine in browsers (which is what I mostly care about) but in Node environments it won't be present and some folks do use it there and complain...
self
If you wanna pass a global root here's the right argument :
(function () { try { return Function('return this')() || (42, eval)('this'); } catch (e) { return self; } })()
Hmmm... the use of
self
is fine in browsers (which is what I mostly care about) but in Node environments it won't be present and some folks do use it there and complain...