Security update to Drupal 8.4.6
[yaffs-website] / node_modules / grunt-legacy-log-utils / node_modules / lodash / _checkGlobal.js
1 /**
2  * Checks if `value` is a global object.
3  *
4  * @private
5  * @param {*} value The value to check.
6  * @returns {null|Object} Returns `value` if it's a global object, else `null`.
7  */
8 function checkGlobal(value) {
9   return (value && value.Object === Object) ? value : null;
10 }
11
12 module.exports = checkGlobal;