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

utils/prop-eq
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
Build: fail
BuildFail
Build Status: fail
Returns `true` if the specified object property is equal, in

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/prop-eq in your project
npm i @bit/bit.ramda.utils.prop-eq
Copied

propEq (name:String, val:*, obj:*) : Boolean

Returns true if the specified object property is equal, in R.equals terms, to the given value; false otherwise. You can test multiple properties with R.whereEq.

Example

var abby = {name: 'Abby', age: 7, hair: 'blond'};
     var fred = {name: 'Fred', age: 12, hair: 'brown'};
     var rusty = {name: 'Rusty', age: 10, hair: 'brown'};
     var alois = {name: 'Alois', age: 15, disposition: 'surly'};
     var kids = [abby, fred, rusty, alois];
     var hasBrownHair = R.propEq('hair', 'brown');
     R.filter(hasBrownHair, kids); //=> [fred, rusty]

Arguments

name: String

val: *

obj: *

Returns

Boolean