Showing 2 of 2 total issues
Function getDiff
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getDiff = (data1, data2) => {
const keys = getKeys(data1, data2);
return keys
.map((key) => {
if (_.isObject(data1[key]) && _.isObject(data2[key])) {
Avoid too many return
statements within this function. Open
Open
return { type: 'unchanged', key, value: data1[key] };