Category
First operand
Second operand
The bitwise OR of a
and b
Reducers
const array = [5, 3];
array.reduce(Bitwise.or); // 7
Category
Calculate the bitwise OR of 2 bigint
s.
Meant to be used with Array.prototype.reduce
.
Time complexity: O(1)
Space complexity: O(1)
First operand
Second operand
The bitwise OR of a
and b
Reducers
const array = [5n, 3n];
array.reduce(Bitwise.or); // 7n
Calculate the bitwise OR of 2
number
s. Meant to be used withArray.prototype.reduce
.Time complexity: O(1)
Space complexity: O(1)