Skip to content

Instantly share code, notes, and snippets.

View danielhusar's full-sized avatar
🏂

Daniel Husar danielhusar

🏂
View GitHub Profile
function validateIBAN(iban) {
var newIban = iban.replace(/ /g, '').toUpperCase(),
modulo = function (divident, divisor) {
var cDivident = '';
var cRest = '';
for (var i in divident ) {
var cChar = divident[i];
var cOperator = cRest + '' + cDivident + '' + cChar;