位运算小技巧 May 14, 2023 JavaScript 38 words in 1 min -- # 位运算小技巧 运算符实战用处 # 按位与 & 取模 10 & 1 => 10 % 2 === 1 # 右移 >> 取一个数的平均数 10 >> 1 => parseInt(10 / 2) Last-updated: 5/14/2023, 1:05:20 PM Copyright: 自由转载-非商用-禁止演绎-保持署名(CC BY-NC-ND 4.0) Link: https://mrzhouzh.github.io/post/2023/05/14/bitwise-operators.html