closes: #4428 Testing for fetchMoreRecords is pending, along with component tests --------- Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
5 lines
169 B
TypeScript
5 lines
169 B
TypeScript
import { isNull, isUndefined } from '@sniptt/guards';
|
|
|
|
export const isDefined = <T>(value: T | null | undefined): value is T =>
|
|
!isUndefined(value) && !isNull(value);
|