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

12 lines (9 loc) 208 B
import {hasOwn} from './hasOwn' export function isEmpty(object: Record<string, unknown>): boolean { for (const key in object) { if (hasOwn(object, key)) { return false } } return true }