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

Function code

spec/keyword.spec.ts:566–570  ·  view source on GitHub ↗
(cxt)

Source from the content-addressed store, hash-verified

564 keyword: "x-even",
565 type: "number",
566 code(cxt) {
567 const {schema, data} = cxt
568 const op = schema ? _`===` : _`!==`
569 cxt.pass(_`${data} % 2 ${op} 0`)
570 },
571 })
572 })
573

Callers

nothing calls this directly

Calls 5

_Function · 0.90
passMethod · 0.80
constMethod · 0.80
setParamsMethod · 0.80
ifMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…