Version 1
[yaffs-website] / node_modules / grunt-legacy-log-utils / node_modules / lodash / isObject.js
diff --git a/node_modules/grunt-legacy-log-utils/node_modules/lodash/isObject.js b/node_modules/grunt-legacy-log-utils/node_modules/lodash/isObject.js
new file mode 100644 (file)
index 0000000..41993db
--- /dev/null
@@ -0,0 +1,29 @@
+/**
+ * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
+ * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
+ *
+ * @static
+ * @memberOf _
+ * @category Lang
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
+ * @example
+ *
+ * _.isObject({});
+ * // => true
+ *
+ * _.isObject([1, 2, 3]);
+ * // => true
+ *
+ * _.isObject(_.noop);
+ * // => true
+ *
+ * _.isObject(null);
+ * // => false
+ */
+function isObject(value) {
+  var type = typeof value;
+  return !!value && (type == 'object' || type == 'function');
+}
+
+module.exports = isObject;