mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-26 01:47:57 +00:00
ec06da0ebc
- Package namespace: @polkadot/* -> @pezkuwi/* - Repository: polkadot-js/common -> pezkuwichain/pezkuwi-common - Author: Pezkuwi Team <team@pezkuwichain.io> Core packages: - @pezkuwi/util (utilities) - @pezkuwi/util-crypto (crypto primitives) - @pezkuwi/keyring (account management) - @pezkuwi/networks (chain metadata) - @pezkuwi/hw-ledger (Ledger hardware wallet) - @pezkuwi/x-* (10 polyfill packages) Total: 14 packages Upstream: polkadot-js/common v14.0.1
17 lines
470 B
TypeScript
17 lines
470 B
TypeScript
// Copyright 2017-2025 @polkadot/util authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import { createCmp } from './helpers.js';
|
|
|
|
/**
|
|
* @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);
|