Browse Source

[helpers] hasProp helper util

0.7.0-breaking-rewrite
Muthu Kumar 7 years ago
parent
commit
c87ee28d06
  1. 3
      util/helpers.js

3
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,
};

Loading…
Cancel
Save