Function luhnCheckDigit

  • Calculates the Luhn check digit for the input.

    Parameters

    • input: string

      Input string

    Returns number

    Luhn check digit