All files / src/utils is-defined.ts

100% Statements 2/2
100% Branches 2/2
100% Functions 2/2
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8  165x       3x    
export function isNullOrUndefined<T>(value: T): value is Extract<T, null | undefined> {
  return value === undefined || value === null;
}
 
export function isNotNullOrUndefined<T>(value: T): value is Exclude<T, null | undefined> {
  return !isNullOrUndefined(value);
}