Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Verifier = idText => {
- return (11 - (idText.slice(0, 12).split('').map((val, key) => parseInt(val) * (13 - key)).reduce((current, total) => total + current) % 11)).toString().slice(-1) === idText[12]
- }
Add Comment
Please, Sign In to add comment