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

5 lines (4 loc) 136 B
import { Divisor } from './divisor'; export declare class DHondtDivisor implements Divisor { next: (iteration: number) => number; }