Skip to content

The open alternative to Salesforce, designed for AI.

185 B
Raw Blame
import { isNull, isUndefined } from '@sniptt/guards';

export const isDefined = <T>(
  value: T | null | undefined,
): value is NonNullable<T> => !isUndefined(value) && !isNull(value);