x/masx200_leetcode_test/maximum-width-of-binary-tree/bigint_min.ts
1234567export function bigintMin(...bigs: bigint[]): bigint { if (bigs.length === 0) { throw new Error("empty argument"); } return bigs.reduce((p, v) => (p > v ? v : p), bigs[0]);}