equals

v0.9.6arrow_drop_down
v0.9.6
STATUS
Passing
DOWNLOADS
39
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
2 KB
Returns `true` if its arguments are equivalent, `false` otherwise.
1 contributor
Install equals as a package?
Copied
npm i @bit/justin-capalbo.ramda.equals
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
equals (
a:*,
b:*
) : Boolean

Returns true if its arguments are equivalent, false otherwise. Handles cyclical data structures.

Dispatches symmetrically to the equals methods of both arguments, if present.

Example
R.equals(1, 1); //=> true
     R.equals(1, '1'); //=> false
     R.equals([1, 2, 3], [1, 2, 3]); //=> true

     const a = {}; a.v = a;
     const b = {}; b.v = b;
     R.equals(a, b); //=> true
Arguments
a: *
b: *
Returns
Boolean

Help and resources