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

Find the smallest bigint.

Similar: min, max, range.


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

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


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

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

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


References

Clone this wiki locally