| Leo Repp | 58b9f11 | 2021-11-22 11:57:47 +0100 | [diff] [blame^] | 1 | var isObject = require('./isObject'); |
| 2 | |||||
| 3 | /** | ||||
| 4 | * Checks if `value` is suitable for strict equality comparisons, i.e. `===`. | ||||
| 5 | * | ||||
| 6 | * @private | ||||
| 7 | * @param {*} value The value to check. | ||||
| 8 | * @returns {boolean} Returns `true` if `value` if suitable for strict | ||||
| 9 | * equality comparisons, else `false`. | ||||
| 10 | */ | ||||
| 11 | function isStrictComparable(value) { | ||||
| 12 | return value === value && !isObject(value); | ||||
| 13 | } | ||||
| 14 | |||||
| 15 | module.exports = isStrictComparable; | ||||