summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/lodash/internal/isStrictComparable.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/lodash/internal/isStrictComparable.js')
-rw-r--r--deps/npm/node_modules/lodash/internal/isStrictComparable.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/deps/npm/node_modules/lodash/internal/isStrictComparable.js b/deps/npm/node_modules/lodash/internal/isStrictComparable.js
new file mode 100644
index 0000000000..0a53eba5ee
--- /dev/null
+++ b/deps/npm/node_modules/lodash/internal/isStrictComparable.js
@@ -0,0 +1,15 @@
+var isObject = require('../lang/isObject');
+
+/**
+ * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` if suitable for strict
+ * equality comparisons, else `false`.
+ */
+function isStrictComparable(value) {
+ return value === value && !isObject(value);
+}
+
+module.exports = isStrictComparable;