lanka-validations - v2.1.0
    Preparing search index...

    Function isValidTIN

    • Validates the format of a Sri Lankan Taxpayer Identification Number (TIN) issued by IRD. Accepts 9 or 10 digits. An NIC number is not a TIN: individuals register for a TIN using their NIC, and IRD issues a separate number.

      Parameters

      • tin: unknown

        Taxpayer Identification Number. Spaces and hyphens are ignored.

      Returns boolean

      true for 9 or 10 digits. NIC numbers return false.

      isValidTIN('123456789'); // true
      isValidTIN('921234567V'); // false