Function isArabic

Check if string is Arabic

  • Parameters

    • str: string
    • trimPattern: RegExp = ...

      Pattern of characters which you want to trim from the string e.g. "-+. ()"

    Returns boolean

    Return true if the entered string does not include other-language characters.