nationid - v0.6.0
    Preparing search index...

    Function luhnCheckDigit

    • Compute the Luhn check digit for a body of digits (without the check digit).

      Returns the check digit (0-9) that, when appended, makes the full number Luhn-valid.

      Parameters

      • body: string

      Returns number