Share your code. Components are building blocks, you are the architect.

utils/eq-props
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
Build: fail
BuildFail
Build Status: fail
Reports whether two objects have the same value, in [`R.equals`](#equals)

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/eq-props in your project
npm i @bit/bit.ramda.utils.eq-props
Copied

eqProps (prop:String, obj1:Object, obj2:Object) : Boolean

Reports whether two objects have the same value, in R.equals terms, for the specified property. Useful as a curried predicate.

Example

var o1 = { a: 1, b: 2, c: 3, d: 4 };
     var o2 = { a: 10, b: 20, c: 3, d: 40 };
     R.eqProps('a', o1, o2); //=> false
     R.eqProps('c', o1, o2); //=> true

Arguments

prop: String

The name of the property to compare

obj1: Object

obj2: Object

Returns

Boolean