Persian Tools - v4.0.4
    Preparing search index...

    Interface NationalIdGenerationResult

    Result object containing the generated National ID and metadata

    interface NationalIdGenerationResult {
        attempts: number;
        checkDigit: number;
        digits: number[];
        hasRepeatedDigits: boolean;
        nationalId: string;
    }
    Index

    Properties

    attempts: number

    Number of generation attempts made

    checkDigit: number

    The calculated check digit

    digits: number[]

    Array of individual digits for analysis

    hasRepeatedDigits: boolean

    Whether the ID has repeated digits

    nationalId: string

    The generated 10-digit National ID