mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 02:07:56 +00:00
12 lines
351 B
JavaScript
12 lines
351 B
JavaScript
import { createCmp } from './helpers.js';
|
|
/**
|
|
* @name nMax
|
|
* @summary Finds and returns the highest value in an array of bigint.
|
|
*/
|
|
export const nMax = /*#__PURE__*/ createCmp((a, b) => a > b);
|
|
/**
|
|
* @name nMin
|
|
* @summary Finds and returns the lowest value in an array of bigint.
|
|
*/
|
|
export const nMin = /*#__PURE__*/ createCmp((a, b) => a < b);
|