and
Logical AND — true when both operands are truthy
Typesany, number, bigint, BigNumber, Complex
bigint
Convert to a bigint
bitAnd
Bitwise AND
Typesnumber, bigint, BigNumber, Int32Array
bitNot
Bitwise NOT (unary)
Typesnumber, bigint, BigNumber, Int32Array
bitOr
Bitwise OR
Typesnumber, bigint, BigNumber, Int32Array
bitXor
Bitwise XOR
Typesnumber, bigint, BigNumber, Int32Array
leftShift
Bitwise left shift
Typesnumber, bigint, BigNumber, Int32Array
not
Logical NOT — flips truthiness
Typesany, number, bigint, BigNumber, Complex
nullish
Returns a unless a is null/undefined, else b
Typesany (returns one operand, not a boolean)
or
Logical OR — true when at least one operand is truthy
Typesany, number, bigint, BigNumber, Complex
re
Real part — identity for real types, re for Complex
Typesnumber, bigint, BigNumber, Complex, Array
rightArithShift
Arithmetic (sign-preserving) right shift
Syntax
rightArithShift(x, n)
Typesnumber, bigint, BigNumber, Int32Array
rightLogShift
Logical (zero-filling) right shift
Syntax
rightLogShift(x, n)
Typesnumber, bigint, Int32Array
xor
Logical XOR — true when exactly one operand is truthy
Typesany, number, bigint, BigNumber, Complex