nationid - v0.6.0
    Preparing search index...

    Function mod11WeightedSum

    • Compute weighted sum mod 11, given digits and weights.

      Weights are applied 1-to-1 with digits from left to right. If weights is shorter than digits, an error is thrown — country-specific code must pre-extend or cycle weights as needed.

      Parameters

      • digits: string
      • weights: readonly number[]

      Returns number