Implement the Luhn algorithm https://en.wikipedia.org/wiki/Luhn_algorithm
import { luhnDigit } from 'idnumbers';// The check digit that completes 7992739871 to the valid number 79927398713.luhnDigit([7, 9, 9, 2, 7, 3, 9, 8, 7, 1]); // 3 Copy
import { luhnDigit } from 'idnumbers';// The check digit that completes 7992739871 to the valid number 79927398713.luhnDigit([7, 9, 9, 2, 7, 3, 9, 8, 7, 1]); // 3
Implement the Luhn algorithm https://en.wikipedia.org/wiki/Luhn_algorithm