UNPKG

window-or-global

Version:

Use either the window object in the browser or the global object in node.

5 lines (4 loc) 169 B
'use strict' module.exports = (typeof self === 'object' && self.self === self && self) || (typeof global === 'object' && global.global === global && global) || this