MCPcopy Create free account
hub / github.com/arktypeio/arktype / hasObjectKind

Function hasObjectKind

ark/util/objectKinds.ts:241–245  ·  view source on GitHub ↗
(
	data: object,
	kind: kind
)

Source from the content-addressed store, hash-verified

239 : domainOf<data>
240
241export const hasObjectKind = <kind extends keyof builtinConstructors>(
242 data: object,
243 kind: kind
244): data is InstanceType<builtinConstructors[kind]> =>
245 objectKindOf(data) === (kind as never)
246
247export const isArray: (data: unknown) => data is readonly unknown[] =
248 /* @__PURE__ */ (() => Array.isArray)()

Callers

nothing calls this directly

Calls 1

objectKindOfFunction · 0.85

Tested by

no test coverage detected