global-var
Version:
Get the correct 'global' variable for the current runtime environment (`window` in browser, `global` in node, etc)
14 lines (10 loc) • 269 B
JavaScript
Get the correct 'global' variable for the current runtime environment (`window` in browser, `global` in node, etc)