Checks specifically whether an input is a valid 10-character Old NIC (9 digits + V/X).
NIC number to check.
Optional
Optional { referenceDate } used for age and future-date checks. Defaults to today.
{ referenceDate }
true only for a valid old-format NIC (9 digits followed by V or X).
true
isValidOldNic('921234567V'); // trueisValidOldNic('199212304567'); // false Copy
isValidOldNic('921234567V'); // trueisValidOldNic('199212304567'); // false
Checks specifically whether an input is a valid 10-character Old NIC (9 digits + V/X).