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

Function typeChecker

lib/types/json.js:243–247  ·  view source on GitHub ↗

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

(type)

Source from the content-addressed store, hash-verified

241 */
242
243function typeChecker (type) {
244 return function checkType (req) {
245 return Boolean(typeis(req, type))
246 }
247}

Callers 1

jsonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected