Skip to content
Subhajit Sahu edited this page Aug 9, 2022 · 7 revisions

Find the largest bigint.

Similar: min, max, range.


function max(...xs)
// xs: bigints

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


xbigint.max(1n, 7n);
// → 7n

xbigint.max(8n, 7n, 6n);
// → 8n

xbigint.max(7n, 8n, 6n);
// → 8n


References

Clone this wiki locally