This function checks if the provided national code is a valid 10-digit Iranian national code.
It performs a checksum validation to ensure the code is correct.
Parameters
nationalCode: string
The national code to validate. It should be a string of 10 digits.
Returns boolean
true if the national code is valid, false otherwise.
Validates an Iranian national code.
This function checks if the provided national code is a valid 10-digit Iranian national code. It performs a checksum validation to ensure the code is correct.