Function testLuhnChecksum

  • Takes a string containing only numbers and checks that the checksum is correct according to the Luhn Algorithm.

    Parameters

    • inputString: string

      A string containing only numbers

    Returns boolean