Skip to content

bigIntSign

bigIntSign(value): -1 | 0 | 1

Defined in: packages/core/src/big-int/sign.ts:7

Sign of value — the bigint equivalent Math.sign does not accept.

Returns a number rather than a bigint: the result is a three-way flag, and every consumer of one (comparators, index arithmetic) wants a number.

bigint

-1 | 0 | 1