MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / isStrictComparable

Function isStrictComparable

lib/web/jshint.js:5706–5708  ·  view source on GitHub ↗

* 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`.

(value)

Source from the content-addressed store, hash-verified

5704 * equality comparisons, else `false`.
5705 */
5706 function isStrictComparable(value) {
5707 return value === value && (value === 0 ? ((1 / value) > 0) : !isObject(value));
5708 }
5709
5710 /**
5711 * Merges the function metadata of `source` into `data`.

Callers 4

baseMatchesFunction · 0.85
baseMatchesPropertyFunction · 0.85
isEqualFunction · 0.85
isMatchFunction · 0.85

Calls 1

isObjectFunction · 0.70

Tested by

no test coverage detected