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

8 lines (7 loc) 217 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DanishDivisor = void 0; class DanishDivisor { next = (iteration) => iteration + 1 / 3; } exports.DanishDivisor = DanishDivisor;