xor.js 129 Bytes
Newer Older
liang ce committed
1 2 3 4 5 6 7 8
module.exports = function xor (a, b) {
  var len = a.length
  var i = -1
  while (++i < len) {
    a[i] ^= b[i]
  }
  return a
}