Ohm-Management - Projektarbeit B-ME
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.

_isStrictComparable.js 414B

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;