27791c0f3adb45d4c979466235ce7f4d62c058e73f90478755c223c44de949849e5177cd13b94f871dc852cec8f371716a5475c5f9153587da4f6fadec2419 414 B

123456789101112131415
  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;