MCPcopy Create free account
hub / github.com/fastify/fastify / checkRequestExistence

Function checkRequestExistence

lib/decorate.js:102–106  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

100}
101
102function checkRequestExistence (name) {
103 if (name && hasKey(this[kRequest], name)) return true
104 if (name && hasInstanceProperty(this[kRequest], name)) return true
105 return checkExistence(this[kRequest].prototype, name)
106}
107
108function checkReplyExistence (name) {
109 if (name && hasKey(this[kReply], name)) return true

Callers

nothing calls this directly

Calls 3

hasKeyFunction · 0.85
hasInstancePropertyFunction · 0.85
checkExistenceFunction · 0.85

Tested by

no test coverage detected