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

Function isContainerMethod

ark/aot/graph.ts:6403–6404  ·  view source on GitHub ↗
(name: unknown)

Source from the content-addressed store, hash-verified

6401 typeMemberKinds[name] === typeMethod
6402
6403const isContainerMethod = (name: unknown): boolean =>
6404 typeof name === "string" && (name in Array.prototype || name in Map.prototype)
6405
6406// an annotation narrows only what the build lost track of
6407// e.g. `onFocus={...}` on `<input>`, whose attributes the renderer reads,

Callers 3

passedKindOfMethod · 0.85
isUnsureReadFunction · 0.85
isTypeMemberReadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected