12345678
  1. module.exports = function xor(a, b) {
  2. var len = a.length;
  3. var i = -1;
  4. while (++i < len) {
  5. a[i] ^= b[i];
  6. }
  7. return a
  8. };