Alchemy Logo

bigIntClamp

function bigIntClamp(value, lower, upper): bigint;

Defined in: aa-sdk/core/src/utils/bigint.ts:41

Given a bigint and a min-max range, returns the min-max clamped bigint value

ParameterTypeDescription

value

BigNumberish

a bigint value to clamp

lower

any

lower bound min max tuple value

upper

any

upper bound min max tuple value

bigint

the clamped bigint value per given range

Was this page helpful?