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

    Variable hasFarsiConst

    hasFarsi: (str: string, isComplex?: boolean) => boolean = hasPersian

    Type declaration

      • (str: string, isComplex?: boolean): boolean
      • Check if string includes persian alphabet.

        Parameters

        • str: string
        • isComplex: boolean = false

          in complex mode, we accept some specific characters which are common in Farsi text.

        Returns boolean

        Return true if the entered string includes persian characters