ramda-extension
Version:
Helpful functions built on top of the mighty Ramda
27 lines (24 loc) • 677 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _ramda = require("ramda");
/**
* Returns true if nested path of object literal does not contains given value.
*
* @func
* @category Relation
*
* @example
*
* R_.pathNotEq(1, ['a', 'b'], { a: { b: 1 } }) // false
* R_.pathNotEq(1, ['a', 'b'], { a: { b: 2 } }) // true
* R_.pathNotEq(1, ['a', 'b'], {}) // true
* R_.pathNotEq(1, ['a', 'b'], { a: {} }) // true
*
* @sig [String | Int] → a → {a} → Boolean
*/
var pathNotEq = (0, _ramda.complement)(_ramda.pathEq);
var _default = pathNotEq;
exports.default = _default;