checkdigit calculation for HP-17b
|
07-29-2015, 08:30 AM
Post: #24
|
|||
|
|||
RE: checkdigit calculation for HP-17b
(07-29-2015 01:52 AM)Thomas Klemm Wrote: This looks like duplicated code that could be extracted to a separate function. Maybe something like this? Code: function checkCPF(cpf) { At least that makes it more apparent that you run the same verification twice. The 2nd time just shifted by one digit. Cheers Thomas |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)