In Javascript, the |
operator is a bitwise operators (in contrast to the ||
operator which is a logical operator).
It convert each operand to a 32-bit number, and performs a bitwise or between them.
Example of expressions and their results:
1 | 1 === 1
1 | 2 === 3
1.99 | 2.99 === 3
Reference: http://developer.mozilla.org/en/JavaScript/Reference/operators/bitwise_operators