From 5dcdf60a95212fb1e814e79c236f1801d48a2bcf Mon Sep 17 00:00:00 2001 From: Stephen Hess Date: Mon, 24 Jul 2017 15:56:36 -0400 Subject: [PATCH] added comment --- controller/predicates/has_request_parameter.js | 1 + 1 file changed, 1 insertion(+) diff --git a/controller/predicates/has_request_parameter.js b/controller/predicates/has_request_parameter.js index 921dfc00..4567f4df 100644 --- a/controller/predicates/has_request_parameter.js +++ b/controller/predicates/has_request_parameter.js @@ -1,3 +1,4 @@ const _ = require('lodash'); +// returns true IFF req.clean has a key with the supplied name module.exports = (parameter) => (req, res) => (_.has(req, ['clean', parameter]));