UNPKG

ramda-extension

Version:

Helpful functions built on top of the mighty Ramda

18 lines (17 loc) 447 B
import { complement, propEq } from 'ramda'; /** * Returns true if property of object literal does not equals the given value. * * @func * @category Relation * * @example * * R_.propNotEq(1, 'a', { a: 1 }) // false * R_.propNotEq(1, 'a', { a: 2 }) // true * R_.propNotEq(1, 'a', {}) // true * * @sig a → String → Object → Boolean */ var propNotEq = /*#__PURE__*/complement(propEq); export default propNotEq;