or

v0.9.6arrow_drop_down
v0.9.6
STATUS
Passing
DOWNLOADS
3
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
797 B
Returns `true` if one or both of its arguments are `true`.
1 contributor
Install or as a package?
Copied
npm i @bit/justin-capalbo.ramda.or
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
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';
toggle layout
No preview available
modifieddraft
chevron_left
chevron_right
or (
a:Any,
b:Any
) : Any

Returns true if one or both of its arguments are true. Returns false if both arguments are false.

Example
R.or(true, true); //=> true
     R.or(true, false); //=> true
     R.or(false, true); //=> true
     R.or(false, false); //=> false
Arguments
a: Any
b: Any
Returns
Any

the first argument if truthy, otherwise the second argument.

Help and resources