JakeTheFriendlyDog/frontend-project-lvl2

View on GitHub
src/ast.js

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Function iter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  const iter = (first, second) => {
    const onlyUniqueKeys = union(keys(first), keys(second));

    return onlyUniqueKeys.flatMap(((key) => {
      if (!has(first, key)) {
Severity: Minor
Found in src/ast.js - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

          return {
            key, type: 'changed', beforeValue: first[key], afterValue: second[key],
          };
    Severity: Major
    Found in src/ast.js - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status