import { isNull, isUndefined } from '@sniptt/guards'; export const isDefined = ( value: T | null | undefined, ): value is NonNullable => !isUndefined(value) && !isNull(value);