getCNICInfo
function getCNICInfo(cnic): CNICInfo | null;Defined in: cnic.ts:63
Reads the province of registration and gender encoded in a CNIC.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
cnic |
string |
CNIC in any format accepted by validateCNIC |
Returns
Section titled “Returns”CNICInfo | null
Decoded information, or null if the CNIC is invalid