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

Function typeChecker

lib/types/raw.js:97–101  ·  view source on GitHub ↗

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

(type)

Source from the content-addressed store, hash-verified

95 */
96
97function typeChecker (type) {
98 return function checkType (req) {
99 return Boolean(typeis(req, type))
100 }
101}

Callers 1

rawFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected