Updated to Drupal 8.6.4, which is PHP 7.3 friendly. Also updated HTMLaw library....
[yaffs-website] / node_modules / grunt-legacy-log-utils / node_modules / lodash / _root.js
1 var checkGlobal = require('./_checkGlobal');
2
3 /** Used to determine if values are of the language type `Object`. */
4 var objectTypes = {
5   'function': true,
6   'object': true
7 };
8
9 /** Detect free variable `exports`. */
10 var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : null;
11
12 /** Detect free variable `module`. */
13 var freeModule = (objectTypes[typeof module] && module && !module.nodeType) ? module : null;
14
15 /** Detect free variable `global` from Node.js. */
16 var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global);
17
18 /** Detect free variable `self`. */
19 var freeSelf = checkGlobal(objectTypes[typeof self] && self);
20
21 /** Detect free variable `window`. */
22 var freeWindow = checkGlobal(objectTypes[typeof window] && window);
23
24 /** Detect `this` as the global object. */
25 var thisGlobal = checkGlobal(objectTypes[typeof this] && this);
26
27 /**
28  * Used as a reference to the global object.
29  *
30  * The `this` value is used if it's the global object to avoid Greasemonkey's
31  * restricted `window` object, otherwise the `window` object is used.
32  */
33 var root = freeGlobal || ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || freeSelf || thisGlobal || Function('return this')();
34
35 module.exports = root;