Currently in Rambda, has() checks whether the value is undefined, which is not what the doc says it does ("It returns true if obj has property prop.").
Instead, has() should use Object.prototype.hasOwnProperty(), as it does in Ramda. I have been bitten by this undocumented incompatibility.
Also, for reference, in Lodash, _.has({a: undefined}, 'a') === true
Currently in Rambda,
has()checks whether the value isundefined, which is not what the doc says it does ("It returns true if obj has property prop.").Instead,
has()should useObject.prototype.hasOwnProperty(), as it does in Ramda. I have been bitten by this undocumented incompatibility.Also, for reference, in Lodash,
_.has({a: undefined}, 'a') === true