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

Function isOperatorOf

ark/type/parser/tupleExpressions.ts:628–629  ·  view source on GitHub ↗
(element: unknown, parsers: object)

Source from the content-addressed store, hash-verified

626
627// a non-string element could run user code if coerced to a property key
628const isOperatorOf = (element: unknown, parsers: object) =>
629 typeof element === "string" && hasOwn(parsers, element)
630
631export const writeInvalidConstructorMessage = <
632 actual extends Domain | BuiltinObjectKind

Callers 2

isIndexOneExpressionFunction · 0.85
isIndexZeroExpressionFunction · 0.85

Calls 1

hasOwnFunction · 0.90

Tested by

no test coverage detected