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

equals

v0.26.1arrow_drop_down
v0.26.1
STATUS
Passing
DOWNLOADS
384
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
7 months ago
SIZE
2 KB
subject
Returns `true` if its arguments are equivalent, `false` otherwise.
1 contributor
Use equals in your project ?
Copied
npm i @bit/ramda.ramda.equals
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
equals(1, 1);
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