validateNTN
function validateNTN(ntn): boolean;Defined in: tax.ts:67
Validates the format of a Pakistani National Tax Number (NTN): a CNIC for individuals, or 7 digits (optionally followed by a check digit) for businesses. See analyzeNTN.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
ntn |
string |
NTN to validate |
Returns
Section titled “Returns”boolean
true if the format is valid