isEqualWith es-toolkit
Checks if two values are equal using a custom comparison function.
Usage
isEqualWith(a, b, areValuesEqual)
Use isEqualWith when you need special comparison logic. If the custom function returns true or false, that result is used; if it returns undefined, the default comparison method is used. Useful for case-insensitive comparison, excluding specific properties, approximate value comparison, etc.
Can also be used for approximate number comparison.
Useful when you want to ignore specific properties during comparison.
Can implement complex custom comparison logic.
Parameters
The first value to compare.
The second value to compare.
A custom comparison function. If it returns true or false, that result is used; if it returns undefined, the default comparison method is used.
Returns
Returns true if the two values are equal according to the custom criteria, false otherwise.
Source: es-toolkit
Re-exported verbatim from es-toolkit. Implementation, edge cases, and performance behavior are owned upstream. This page mirrors the documentation at the pinned version; the linked source is authoritative.