Validate a full digit string under ISO/IEC 7064 MOD 11,10. The last character is treated as the check digit; the leading n-1 characters are the body.
n-1
Digit-only string of length ≥ 2.
true if the last digit equals mod11_10CheckDigit(body).
true
mod11_10CheckDigit(body)
import { mod11_10Valid } from "nationid/algorithms";mod11_10Valid("33392005961"); // true (HR OIB)mod11_10Valid("33392005960"); // false Copy
import { mod11_10Valid } from "nationid/algorithms";mod11_10Valid("33392005961"); // true (HR OIB)mod11_10Valid("33392005960"); // false
Validate a full digit string under ISO/IEC 7064 MOD 11,10. The last character is treated as the check digit; the leading
n-1characters are the body.