bitNot
~x
bitNot(x)
Bitwise NOT operation. Performs a logical negation on each bit of the given value. Bits that are 0 become 1, and those that are 1 become 0.
Try it yourself:
$1 | ~1
| |
$2 | ~2
| |
$3 | bitNot([2, -3, 4])
|