highest-averages
Version:
Zero-dependency and extensible set of highest averages methods for allocating seats in a parliament. ### Install ```shell npm i highest-averages ``` ### Pure Example - Define the candidates with their vote ```typescript const a = new Candidate('A', 200) c
12 lines (11 loc) • 328 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.InvalidVotes = void 0;
const candidate_1 = require("./candidate");
class InvalidVotes extends candidate_1.Candidate {
selectable = false;
constructor(vote) {
super('INVALID', vote);
}
}
exports.InvalidVotes = InvalidVotes;