{"size": 562, "ext": "js", "max_stars_repo_path": "Day 6/part1.js", "max_stars_repo_name": "Butterstroke/Advent-of-Code-2020", "max_stars_repo_stars_event_min_datetime": "2021-12-12T15:57:58.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-12T15:57:58.000Z", "max_issues_repo_path": "Day 6/part1.js", "max_issues_repo_name": "Butterstroke/Advent-of-Code-2020", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Day 6/part1.js", "max_forks_repo_name": "Butterstroke/Advent-of-Code-2020", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.4166666667, "max_line_length": 83, "alphanum_fraction": 0.4928825623}
const fs = require("fs");
var values = fs.readFileSync("input.txt", "utf8").split("\r\n"); //Reads the values

var yesCount = 0;
var currGroup = [];

for (var x = 0; x < values.length; x++) {
    var currLine = values[x];

    if (currLine != "") {
        for (var y = 0; y < currLine.length; y++) {
            var currChar = currLine[y];
    
            if (!currGroup.includes(currChar)) {
                currGroup.push(currChar);
                yesCount++;
            }
        }
    } else {
        currGroup = [];
    }    
};

console.log(yesCount);