UNPKG

351 BJavaScriptView Raw
1import { createCmp } from './helpers.js';
2/**
3 * @name nMax
4 * @summary Finds and returns the highest value in an array of bigint.
5 */
6export const nMax = /*#__PURE__*/ createCmp((a, b) => a > b);
7/**
8 * @name nMin
9 * @summary Finds and returns the lowest value in an array of bigint.
10 */
11export const nMin = /*#__PURE__*/ createCmp((a, b) => a < b);