Skip to content
Subhajit Sahu edited this page Sep 4, 2021 · 7 revisions

Gives smallest value.
📦 NPM, 😺 GitHub, 🏃 RunKit, 🌔 Minified, 📜 Files, 📰 JSDoc, 📘 Wiki.


bigint.min(...xs);
// xs: bigints
const bigint = require('extra-bigint');

bigint.min(5n, 3n, 8n);
// 3n

bigint.min(5n, 3n, -8n);
// -8n

bigint.min();
// null


References

Clone this wiki locally