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

is-equal

v4.17.11arrow_drop_down
v4.17.11
STATUS
Passing
DOWNLOADS
60
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
7 months ago
SIZE
N/A
subject
Performs a deep comparison between two values to determine if they are
1 contributor
Use is-equal in your project ?
Copied
npm i @bit/lodash.lodash.is-equal
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
isEqual(object, other);
modifieddraft
chevron_left
chevron_right
isEqual (
value:*,
other:*
) : boolean

Performs a deep comparison between two values to determine if they are equivalent.

Note: This method supports comparing arrays, array buffers, booleans, date objects, error objects, maps, numbers, Object objects, regexes, sets, strings, symbols, and typed arrays. Object objects are compared by their own, not inherited, enumerable properties. Functions and DOM nodes are compared by strict equality, i.e. ===.

Example
var object = { 'a': 1 };
var other = { 'a': 1 };

_.isEqual(object, other);
// => true

object === other;
// => false
Arguments
value: *

The value to compare.

other: *

The other value to compare.

Returns
boolean

Returns `true` if the values are equivalent, else `false`.