Skip to main content

isChineseCharacter

Callable

  • isChineseCharacter(character: string): boolean

  • Test if the current character parsed in is a Chinese character, and client user is using Chinese. This is to prevent garbling Japanese kanji. But for chatroom use case where two clients may have different languages I don't have a definite solution yet, so let's do this for now to resolve the options not showing up first.


    Parameters

    • character: string

    Returns boolean

    • true if is Chinese character, false otherwise.