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

6 lines (4 loc) 213 B
const IGNORE_KEYS = ['_key', '_type', '_weak'] export function isEmptyItem(value: Record<string, unknown>): value is Record<never, never> { return Object.keys(value).every((key) => IGNORE_KEYS.includes(key)) }