UNPKG

sanity

Version:

Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches

7 lines (6 loc) 140 B
/** * @internal */ export function isNonNullable<T>(value: T): value is NonNullable<T> { return value !== null && value !== undefined }