equals
Litichevskiy Dmitriy edited this page Jan 13, 2019
·
2 revisions
Method checks two objects equality.
Kind: global function
Returns: boolean
- Comparison result.
Param | Type | Description |
---|---|---|
first | any |
First object. |
second | any |
Second object. |
options.ignoreCollectionOrder | boolean |
If false the collection comparison will be performed taking into account the order of the collections, if true, then the differences in the collections order are ignored. |
options.ignoreObjectTypes | boolean |
If false the objects comparison will be performed taking into account objects prototypes, if true, then differences in the objects prototypes are ignored. |
options.membersToIgnore | Set |
Set with objects members, provided via format constructorName.memberName which must be ignored during the comparison. |
options.customComparers | Map |
Map with custom comparison functions (takes two objects as a parameters and returns comparison result) which are stored for objects prototypes. |