Cross-validates whether the entered gender matches the gender in the Sri Lankan NIC.
Gender from the form.
NIC number from the same form.
true if both are valid and the gender matches the one encoded in the NIC.
true
matchesNicGender('male', '921234567V'); // truematchesNicGender('female', '921234567V'); // false Copy
matchesNicGender('male', '921234567V'); // truematchesNicGender('female', '921234567V'); // false
Cross-validates whether the entered gender matches the gender in the Sri Lankan NIC.