ESLint pluginRulesprefer-no-lodash-is-equalOn this pageprefer-no-lodash-is-equalDetects all usages of isEqual from Lodash.RationaleLodash's isEqual may be a costly operation and should be used with caution.Examples❌ Examples of incorrect code for this ruleimport { isEqual } from 'lodash-es';if (isEqual(prevObj, currObj)) { // ...}✅ Examples of correct code for this ruleif ( prevObj.prop === currObj.prop && prevObj.arr.length === currObj.arr.length && prevObj.arr.every( (prevItem, i) => prevItem.x === currObj.arr[i].x && prevItem.y === currObj.arr[i].y )) { // ...}if (isEqual(prevObj, currObj)) { // ...}function isEqual<T>(a: T, b: T): boolean { return JSON.stringify(a) === JSON.stringify(b);}