Lodash _.isEqualWith() Method Last Updated : 04 Sep, 2024 Comments Improve Suggest changes Like Article Like Report Lodash _.isEqualWith() method of Lang in lodash is similar to the _.isEqual() method and the only difference is that it accepts a customizer which is called in order to compare values. Moreover, if the customizer used here returns undefined then the comparisons are dealt with 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.Syntax:_.isEqualWith(value, other, [customizer]);Parameters:value: It is the value to be compared.other: It is the other value to be compared.customizer: It is the function that is used to customize comparisons.Return Value: This method returns true if the stated values are equivalent otherwise it returns false.Example 1: In this example, we are checking whether the given two arrays are equal or not by the use of the Lodash _isEqualWith() method. JavaScript // Requiring lodash library const _ = require('lodash'); // Defining a function portal function portal(val) { return /^G(?:fG|eeksforGeeks)$/.test(val); } // Defining customizer to compare values function customizer(objectValue, otherValue) { if (portal(objectValue) && portal(otherValue)) { return true; } } // Initializing values let val = ['GeeksforGeeks', 'CS-portal']; let otherval = ['GfG', 'CS-portal']; // Calling isEqualWith() method with all // its parameter let result = _.isEqualWith(val, otherval, customizer); // Displays output console.log(result); Output:trueExample 2: In this example, we are checking whether the given two arrays are equal or not by the use of the Lodash _isEqualWith() method. JavaScript // Requiring lodash library const _ = require('lodash'); // Defining a function portal function portal(val) { return /^G(?:fG|eeksforGeeks)$/.test(val); } // Defining customizer to compare values function customizer(objectValue, otherValue) { if (portal(objectValue) && portal(otherValue)) { return true; } } // Initializing values let val = ['GeeksforGeeks', 'CS-portal']; let otherval = ['GfG', 'portal']; // Calling isEqualWith() method with all // its parameter let result = _.isEqualWith(val, otherval, customizer); // Displays output console.log(result); Output:falseExample 3: In this example, we are checking whether the given two arrays are equal or not by the use of the Lodash _isEqualWith() method. JavaScript // Requiring lodash library const _ = require('lodash'); // Defining a function gfg function gfg(val) { return val; } // Defining customizer function intg(x, y) { if (gfg(x) === gfg(y)) { return true; } } // Calling isEqualWith() method with all // its parameter let result = _.isEqualWith('gf', 'gfg', intg); // Displays output console.log(result); Output:falseReference: https://lodash.com/docs/4.17.15#isEqualWith Comment More infoAdvertise with us N nidhi1352singh Follow Improve Article Tags : JavaScript Web Technologies JavaScript-Lodash Similar Reads Lodash _.castArray() Method Lodash _.castArray() method is used to cast value into an array if it is not an array.Syntax: _.castArray(value);Parameters:  value: This parameter holds the value that needs to be inspected.Return Value:It returns an array with the including value passed in the _.castArray().Example 1: In this exam 2 min read Lodash _.clone() Method Lodash _.clone() method is used to create a shallow copy of the value. This method supports cloning arrays, array buffers, booleans, date objects, maps, numbers, Object objects, regexes, sets, strings, symbols, and typed arrays. It is loosely based on the structured clone algorithm. Syntax:_.clone(v 2 min read Lodash _.cloneDeep() Method The Lodash _.cloneDeep() method is handy for making a complete copy of a value. It goes deep into the value, copying everything inside it too. So, the new object you get has the exact same data as the original, but they're not linked in memory.This method is similar to the _.clone() method.Syntax: _ 2 min read Lodash _.cloneDeepWith() Method Lodash .cloneDeepWith() method is used to clone value in a recursive way, just the same as the  _.cloneWith() method but performs in a recursive manner.Syntax:_.cloneDeepWith( value, [customizer]);Parameters: value: This parameter holds the value which will be cloned in a recursive way.customizer: T 2 min read Lodash _.cloneWith() Method Lodash _.cloneWith() method of Lang in lodash is similar to the _.clone() method and the only difference is that it accepts a customizer which is called in order to generate cloned value. Moreover, if the customizer used here returns undefined then the cloning is dealt with by the method instead.Not 2 min read Lodash _.conformsTo() Method Lodash _.conformsTo() method is used to check if the given object conforms to the given source by invoking the predicate properties of the source with the corresponding property values of the object. It returns true if it conforms, else false.Syntax:_.conformsTo( object, source );Parameters: object: 2 min read Lodash _.eq() Method Lodash _.eq() method is used to find whether the two values are equivalent or not by performing the SameValueZero comparison. It returns true if the values are equivalent. Otherwise, it returns false.Syntax:_.eq(value, other);Parameters: value: This parameter holds the value to compare.other: This p 2 min read Lodash _.gt() Method Lodash _.gt() method is used to find whether the value is greater than others or not. It returns true if the value is greater than the other value. Otherwise, it returns false.Syntax:_.gt(value, other);Parameters: value: This parameter holds the value to compare.other: This parameter holds the other 2 min read Lodash _.gte() Method Lodash _.gte() method is used to check whether the specified value is greater than or equal to another or not.Syntax:_.gte(value, other);Parameters: value: This parameter holds the first value to compare.other: This parameter holds the second value to compare.Return Value: This method returns a bool 2 min read Lodash _.isArguments() Method Lodash _.isArguments() method checks if the value is likely an arguments object. Syntax:_.isArguments(value);Parameters: value: It is the function that is used to check the value.Return Value: This method returns true if the value is an argument object else false. Example 1: In this example, we are 2 min read Like