function mask(_value, _bits): bigint

Mask value with a bitmask of bits ones.

Parameters

ParameterTypeDescription
_valueBigNumberishThe value to mask.
_bitsNumericThe number of bits to mask.

Returns

bigint

The masked value.

Source

utils/maths.ts:106