mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-23 06:42:09 +03:00
11 lines
213 B
TypeScript
11 lines
213 B
TypeScript
import bigInt, { BigInteger } from 'big-integer';
|
|
|
|
export function max(a: BigInteger, b: BigInteger) {
|
|
return a.gt(b) ? a : b;
|
|
}
|
|
|
|
export function min(a: BigInteger, b: BigInteger) {
|
|
return a.lt(b) ? a : b;
|
|
}
|
|
|