modes - nodef/extra-bigint GitHub Wiki
Find the values that appear most often.
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]