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

Function isArrayOrObjectLiteral

ark/aot/usage.ts:1248–1252  ·  view source on GitHub ↗
(node: Node | undefined)

Source from the content-addressed store, hash-verified

1246}
1247
1248const isArrayOrObjectLiteral = (node: Node | undefined): boolean => {
1249 if (!node) return false
1250 const target = unwrapExpression(node)
1251 return target.type === "ArrayExpression" || target.type === "ObjectExpression"
1252}
1253
1254const destructuresPrototype = (pattern: Node): boolean =>
1255 pattern.type === "ObjectPattern" &&

Callers 1

isBuiltinPrototypePatchFunction · 0.85

Calls 1

unwrapExpressionFunction · 0.90

Tested by

no test coverage detected