scmpCompare.js 189 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 'use strict' module.exports = function scmpCompare (a, b) { const len = a.length let result = 0 for (let i = 0; i < len; ++i) { result |= a[i] ^ b[i] } return result === 0 }