Showing 2 of 7 total issues
Function getAST
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getAST = (object1, object2) => {
const unionObj = _.union(Object.keys(object1), Object.keys(object2));
return unionObj.map((key) => {
const value1 = object1[key];
Avoid too many return
statements within this function. Open
Open
return {
key, type: 'added', value: value2,
};