MCPcopy Create free account
hub / github.com/expressjs/body-parser / typeChecker

Function typeChecker

lib/types/text.js:117–121  ·  view source on GitHub ↗

* Get the simple type checker. * * @param {string} type * @return {function}

(type)

Source from the content-addressed store, hash-verified

115 */
116
117function typeChecker (type) {
118 return function checkType (req) {
119 return Boolean(typeis(req, type))
120 }
121}

Callers 1

textFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected