In Javascript: Math.max and Math.min do not work for BigInt types.
For example:
> Math.max(1n, 2n)
Thrown:
TypeError: Cannot convert a BigInt value to a number
at Math.max (<anonymous>)
>
Is there a built in function that performs these operations on BigInts?