portfolio/src/utils/notNil.ts
Roman Jaroš f16f36ec92
All checks were successful
forgejo/romanjaros/portfolio/pipeline/head This commit looks good
Refactor and enhance job-related components and context.
2025-01-15 16:14:26 +00:00

5 lines
No EOL
136 B
TypeScript

export function notNil<TValue>(
value: TValue | null | undefined,
): value is TValue {
return value !== null && value !== undefined;
}