@suddjian/voting

0.0.0 • Public • Published

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'],
]);

Readme

Keywords

Package Sidebar

Install

npm i @suddjian/voting

Weekly Downloads

1

Version

0.0.0

License

ISC

Unpacked Size

4.56 kB

Total Files

6

Last publish

Collaborators

  • suddjian