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

Function isNode

ark/aot/unwrite.ts:357–361  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

355}
356
357const isNode = (value: unknown): value is NamedNode =>
358 typeof value === "object" &&
359 value !== null &&
360 typeof (value as Partial<Node>).type === "string" &&
361 typeof (value as Partial<Node>).start === "number"
362
363const between =
364 /\s+|[\p{ID_Start}$_][\p{ID_Continue}$‌‍]*|\d[\p{ID_Continue}.]*|"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'|./suy

Callers 1

collectNamedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected