Computes the Verhoeff check digit for a digit string that does NOT yet include the check digit.
Digit-only string (the "base" without the check digit).
A single digit in [0, 9] such that verhoeffValid(base + checkDigit) === true.
[0, 9]
verhoeffValid(base + checkDigit) === true
on non-digit input.
import { verhoeffCheckDigit } from "nationid/algorithms";verhoeffCheckDigit("23412341234"); // 6 Copy
import { verhoeffCheckDigit } from "nationid/algorithms";verhoeffCheckDigit("23412341234"); // 6
Computes the Verhoeff check digit for a digit string that does NOT yet include the check digit.