-
Notifications
You must be signed in to change notification settings - Fork 2
modes
Subhajit Sahu edited this page Aug 9, 2022
·
1 revision
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]