MCPcopy
hub / github.com/ajv-validator/ajv / eachItem

Function eachItem

lib/compile/util.ts:76–82  ·  view source on GitHub ↗
(xs: T | T[], f: (x: T) => void)

Source from the content-addressed store, hash-verified

74}
75
76export function eachItem<T>(xs: T | T[], f: (x: T) => void): void {
77 if (Array.isArray(xs)) {
78 for (const x of xs) f(x)
79 } else {
80 f(xs)
81 }
82}
83
84type SomeEvaluated = EvaluatedProperties | EvaluatedItems
85

Callers 3

addKeywordMethod · 0.90
checkKeywordFunction · 0.90
countKeysFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…