danielfloresd / team-profile-generator

Prefer that for-in loops should include an if statement JS-0051
Anti-pattern
Minor
1 occurrence in this check
Wrap the body of a for-in loop in an if statement with a hasOwnProperty guard
14      white: "\x1b[37m"
15    };
16
17    for (const key in colors) {18      // Each color method calls console.log with the color as the first argument,followed by any additional arguments.19      Logger.prototype[key] = function(...args) {20        console.log(colors[key], ...args);21      };22    }23  }
24}
25