interface BigIntConstructor { prototype: BigInt; asIntN(bits: number,
int: bigint): bigint; asUintN(bits: number,
int: bigint): bigint; (value: | string | number | bigint | boolean): bigint; } - BigIntConstructor(value): bigint
Parameters
- value:
| string
| number
| bigint
| boolean
Returns bigint
Properties
Methods
asIntN
- asIntN(bits, int): bigint
Returns bigint
asUintN
- asUintN(bits, int): bigint
Returns bigint
Interprets the low bits of a BigInt as a 2's-complement signed integer. All higher bits are discarded.