Skip to content
Subhajit Sahu edited this page Aug 9, 2022 · 1 revision

Find the values that appear most often.

Similar: mean, median, modes, variance, range.


function modes(...xs)
// xs: a list of bigints

const xbigint = require('extra-bigint');


xbigint.modes(1n, 2n);
// → [1n, 2n]

xbigint.modes(1n, 2n, 2n);
// → [2n]

xbigint.modes(1n, 2n, 2n, 3n, 3n);
// → [2n, 3n]


References

Clone this wiki locally