Skip to content

Instantly share code, notes, and snippets.

Avatar

Junius Lekgoara julekgwa

View GitHub Profile
@julekgwa
julekgwa / validateId.js
Last active Nov 25, 2019
South African ID validation
View validateId.js
function validateZARID(id) {
if (!id || typeof id !== 'string') {
return;
}
id = id.split('');
const validationCheck = [];
let sum = 0;