MCPcopy Create free account
hub / github.com/zenstackhq/zenstack / isEmptyObject

Function isEmptyObject

packages/orm/src/utils/object-utils.ts:20–22  ·  view source on GitHub ↗
(x: unknown)

Source from the content-addressed store, hash-verified

18 * Checks if the given value is an empty plain object.
19 */
20export function isEmptyObject(x: unknown) {
21 return isPlainObject(x) && Object.keys(x as object).length === 0;
22}

Callers 2

disconnectRelationFunction · 0.90
deleteRelationFunction · 0.90

Calls 1

isPlainObjectFunction · 0.90

Tested by

no test coverage detected