Skip to content

The open alternative to Salesforce, designed for AI.

325 B
Raw Blame
import { isNonEmptyString } from '@sniptt/guards';
import { type Nullable } from 'twenty-shared/types';

export const compareNonEmptyStrings = (
  valueA: Nullable<string>,
  valueB: Nullable<string>,
) => {
  if (!isNonEmptyString(valueA) && !isNonEmptyString(valueB)) {
    return true;
  }

  return valueA === valueB;
};