diff --git a/util/helpers.js b/util/helpers.js index 37ab55b..88270f9 100644 --- a/util/helpers.js +++ b/util/helpers.js @@ -52,4 +52,7 @@ module.exports = { short : (pred, shorter) => fn => value => pred(value) ? shorter(value) : fn(value), + /* Check if object has given property */ + hasProp : obj => prop => prop in obj, + };