Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

prop-satisfies

v0.26.1arrow_drop_down
v0.26.1
STATUS
Passing
DOWNLOADS
36
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
7 months ago
SIZE
926 B
subject
Returns `true` if the specified object property satisfies the given predicate; `false` otherwise.
1 contributor
Use prop-satisfies in your project ?
Copied
npm i @bit/ramda.ramda.prop-satisfies
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
React
React
Vue
Angular
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
revert changes
reload
toggle layout
maximize
propSatisfies(x => x > 0, "x", {
  x: 1,
  y: 2
});
modifieddraft
chevron_left
chevron_right
propSatisfies (
pred:Function,
name:String,
obj:*
) : Boolean

Returns true if the specified object property satisfies the given predicate; false otherwise. You can test multiple properties with R.where.

Example
R.propSatisfies(x => x > 0, 'x', {x: 1, y: 2}); //=> true
Arguments
pred: Function
name: String
obj: *
Returns
Boolean