Created
May 21, 2020 03:14
-
-
Save voltuer/97c5f66c0f231cfa457d26a4ecb61f62 to your computer and use it in GitHub Desktop.
Digito verificador rut en una linea
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dv = function(T){var M=0,S=1;for(;T;T=Math.floor(T/10))S=(S+T%10*(9-M++%6))%11;return S?S-1:'K';} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment