1 contributor
Like
Install where as a package?
Copied
npm i @bit/justin-capalbo.ramda.where
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
where (
spec:
Object
,testObj:
) : Object
Boolean
Takes a spec object and a test object; returns true if the test satisfies
the spec. Each of the spec’s own properties must be a predicate function.
Each predicate is applied to the value of the corresponding property of the
test object. where
returns true if all the predicates return true, false
otherwise.
where
is well suited to declaratively expressing constraints for other
functions such as filter
and find
.
Example
Arguments
spec:
Object
testObj:
Object
Returns
Boolean