xor.js 129 Bytes Raw Blame History Permalink 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 }