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