UNPKG

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
/*! * global-var <https://github.com/AndreasPizsa/global-var> * * Copyright (c) 2016, Andreas Pizsa. * Licensed under the MIT License. */ 'use strict'; var getGlobal = Function('return this'); module.exports = getGlobal(); module.exports.getGlobal = getGlobal;