MCPcopy Create free account
hub / github.com/bugy/script-server / compareNulls

Function compareNulls

web-src/src/common/utils/common.js:442–454  ·  view source on GitHub ↗
(value1, value2)

Source from the content-addressed store, hash-verified

440}
441
442function compareNulls(value1, value2) {
443 if (isNull(value1) && isNull(value2)) {
444 return 0;
445 }
446
447 if (isNull(value1)) {
448 return -1;
449 } else if (isNull(value2)) {
450 return 1;
451 }
452
453 return null;
454}
455
456export function stringComparator(field) {
457 const comparator = function (a, b) {

Callers 1

comparatorFunction · 0.85

Calls 1

isNullFunction · 0.85

Tested by

no test coverage detected