Lodash _.isEqualWith() Method
The _.isEqualWith() method of Lang in lodash is similar to _.isEqual() method and the only difference is that it accepts customizer which is called in order to compare values. Moreover, if the customizer used here returns undefined then the comparisons are dealt by the method instead.
Note: The customizer used here can be called with up to six arguments namely objValue, othValue, index|key, object, other, and stack.
_.isEqualWith(value, other, [customizer])
Parameters: This method accepts three parameters as mentioned above and described below:
- value: It is the value to be compared.
- other: It is the other value to be compared.
- customizer: It is the function which is used to customize comparisons.
Return Value: This method returns true if the stated values are equivalent otherwise it returns false.
Please Login to comment...