nationid - v2.2.1
    Preparing search index...

    Function mod11_10Valid

    • 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.

      Parameters

      • full: string

        Digit-only string of length ≥ 2.

      Returns boolean

      true if the last digit equals mod11_10CheckDigit(body).

      import { mod11_10Valid } from "nationid/algorithms";

      mod11_10Valid("33392005961"); // true (HR OIB)
      mod11_10Valid("33392005960"); // false