Function isValidLuhn

  • Returns true if the input passes the Luhn algorithm.

    Parameters

    • input: string

      Input string

    Returns boolean

    true if the input passes the Luhn algorithm