Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return function keyCheck(res, body, next) {
var value = pathval.getPathValue(body, keyParam);
var notUndefined = typeof value !== 'undefined';
next(assert(notUndefined, true, 'Key - ' + keyParam));
};
};
return function value(res, body, next) {
next(assert(pathval.getPathValue(body, key), val, 'Value - ' + key));
};
};