You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
414 B

4 years ago
  1. var isObject = require('./isObject');
  2. /**
  3. * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
  4. *
  5. * @private
  6. * @param {*} value The value to check.
  7. * @returns {boolean} Returns `true` if `value` if suitable for strict
  8. * equality comparisons, else `false`.
  9. */
  10. function isStrictComparable(value) {
  11. return value === value && !isObject(value);
  12. }
  13. module.exports = isStrictComparable;