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

Function typeChecker

lib/types/urlencoded.js:280–284  ·  view source on GitHub ↗

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

(type)

Source from the content-addressed store, hash-verified

278 */
279
280function typeChecker (type) {
281 return function checkType (req) {
282 return Boolean(typeis(req, type))
283 }
284}

Callers 1

urlencodedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected