1 contributor
Like
Install where-eq as a package?
Copied
npm i @bit/justin-capalbo.ramda.where-eq
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
whereEq (
spec:
Object
,testObj:
) : Object
Boolean
Takes a spec object and a test object; returns true if the test satisfies
the spec, false otherwise. An object satisfies the spec if, for each of the
spec’s own properties, accessing that property of the object gives the same
value (in R.equals
terms) as accessing that property of the
spec.
whereEq
is a specialization of where
.
Example
Arguments
spec:
Object
testObj:
Object
Returns
Boolean