EarnMorev1.0.0

luhnCheckDigit

luhnCheckDigit(partial: string): number

Source: pan.ts:27

Computes the Luhn check digit for a partial PAN (digits 1-15). Returns a single digit (0-9) to append as digit 16.

Parameters

  • partial (string)

Returns