API reference › @evolu/common › Object › getObjectKind
function getObjectKind(value: object): ObjectKind;
Defined in: packages/common/src/Object.ts:33
Classifies Object representations supported by Evolu's structural data APIs.
Plain Objects are classified from their prototype without reading their
properties, including Symbol.toStringTag.
Example
import { assertEqual, getObjectKind } from "@evolu/common";
assertEqual(getObjectKind({}), "Object");
assertEqual(getObjectKind(new Map()), "Map");
assertEqual(getObjectKind(/value/u), "Unsupported");