Skip to main content
Module

x/polkadot/util/bi/min.ts

Package publishing for deno.land/x/polkadot
Go to Latest
File

import { createCmp } from './helpers.ts';
/** * @name nMax * @summary Finds and returns the highest value in an array of bigint. */export const nMax = /*#__PURE__*/ createCmp<bigint>((a, b) => a > b);
/** * @name nMin * @summary Finds and returns the lowest value in an array of bigint. */export const nMin = /*#__PURE__*/ createCmp<bigint>((a, b) => a < b);