lib/cpr.js
function cprModFunction (a, b) {
  let res = a % b
  if (res < 0) res += b
  return res
}
function cprModFunction (a, b) {
  let res = a % b
  if (res < 0) res += b
  return res
}
function cprModFunction ( a , b ) { let res = a % b if ( res < 0 ) res += b return res }
Always positive MOD operation, used for CPR decoding
Always positive MOD operation used for CPR decoding