vitamin163/frontend-project-lvl2

View on GitHub

Showing 1 of 3 total issues

Function getDiff has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const getDiff = (obj1, obj2) => {
  const keys = _.union(_.keys(obj1), _.keys(obj2)).sort();

  const buildNode = (key, status, oldValue, newValue, children) => ({
    key, status, oldValue, newValue, children,
Severity: Minor
Found in src/getdiff.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language