Showing 2 of 2 total issues
Function getDifference
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getDifference = (object1, object2) => {
const keys1 = _.keys(object1);
const keys2 = _.keys(object2);
const sortedKeys = _.sortBy(_.union(keys1, keys2));
Avoid too many return
statements within this function. Open
Open
return {
key,
type: 'changed',
val1: value1,
val2: value2,