The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
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;
};