UNPKG

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

13 lines (12 loc) 449 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Imperiali = void 0; require("./extensions/array_extensions"); const highest_average_1 = require("./highest_average"); const imperiali_divisor_1 = require("./divisors/imperiali_divisor"); class Imperiali extends highest_average_1.HighestAverage { constructor() { super((new imperiali_divisor_1.ImperialiDivisor)); } } exports.Imperiali = Imperiali;