Function checkDigit

  • Calculate the check digit for a numeric string as per section 7.9.1 of the GS1 General Specifications.

    Parameters

    • s: string

      Numeric string.

    Returns string

    Check digit 0-9 as a string.