Version 1
[yaffs-website] / node_modules / grunt-legacy-log-utils / node_modules / lodash / _checkGlobal.js
diff --git a/node_modules/grunt-legacy-log-utils/node_modules/lodash/_checkGlobal.js b/node_modules/grunt-legacy-log-utils/node_modules/lodash/_checkGlobal.js
new file mode 100644 (file)
index 0000000..b0ea47e
--- /dev/null
@@ -0,0 +1,12 @@
+/**
+ * Checks if `value` is a global object.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {null|Object} Returns `value` if it's a global object, else `null`.
+ */
+function checkGlobal(value) {
+  return (value && value.Object === Object) ? value : null;
+}
+
+module.exports = checkGlobal;