Skip to content

The open alternative to Salesforce, designed for AI.

173 B
Raw Blame
import { isNonEmptyString } from '@sniptt/guards';

export const readOptionalString = (value: unknown): string | undefined =>
  isNonEmptyString(value) ? value : undefined;