MCPcopy Create free account
hub / github.com/json-editor/json-editor / hasPropFunc

Function hasPropFunc

docs/scripts/ajv-validator.js:5463–5469  ·  view source on GitHub ↗
(gen)

Source from the content-addressed store, hash-verified

5461 }
5462 exports.reportMissingProp = reportMissingProp;
5463 function hasPropFunc(gen) {
5464 return gen.scopeValue("func", {
5465 // eslint-disable-next-line @typescript-eslint/unbound-method
5466 ref: Object.prototype.hasOwnProperty,
5467 code: (0, codegen_1._) `Object.prototype.hasOwnProperty`,
5468 });
5469 }
5470 exports.hasPropFunc = hasPropFunc;
5471 function isOwnProperty(gen, data, property) {
5472 return (0, codegen_1._) `${hasPropFunc(gen)}.call(${data}, ${property})`;

Callers 1

isOwnPropertyFunction · 0.85

Calls 1

scopeValueMethod · 0.80

Tested by

no test coverage detected