@suddjian/voting
v0.0.0
Published
implementation of voting algorithms
Downloads
4
Readme
Voting
An implementation of voting algorithms.
For now the Condorcet method is supported because it's objectively the best voting algorithm :)
Usage
import { condorcet } from '@suddjian/voting'
const bestIceCreams = condorcet([
['chocolate', 'rocky road', 'vanilla'],
['strawberry', 'chocolate'],
['coffee', 'chocolate'],
['vanilla'],
['chocolate', 'strawberry'],
]);