From c87ee28d064f3aa5ca957f7cf8a25492b5d436a1 Mon Sep 17 00:00:00 2001 From: Muthu Kumar Date: Fri, 3 Aug 2018 18:00:26 +0530 Subject: [PATCH] [helpers] hasProp helper util --- util/helpers.js | 3 +++ 1 file changed, 3 insertions(+) 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, + };