Showing 2 of 2 total issues
Function getDifferenceAst
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getDifferenceAst = (before, after) => {
const keysUnion = _.union(_.keys(before), _.keys(after));
const ast = keysUnion.map((key) => {
const beforeValue = before[key];
const afterValue = after[key];
Function ast
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ast = keysUnion.map((key) => {
const beforeValue = before[key];
const afterValue = after[key];
const isBothObjectsHaveKey = () => _.has(before, key) && _.has(after, key);
const isBothValuesAreObjects = () =>