Skip to main content

isPunctuationOrSpace

Callable

  • isPunctuationOrSpace(character: string): boolean

  • Return whether the passed character belongs to either the unicode Symbol, Punctuation or Separator category.


    Parameters

    • character: string

      The character needs to be checked.

    Returns boolean

    • Whether the passed character is equivalent to one of aforementioned punctuation characters