mwbot-ts - v1.2.7
    Preparing search index...

    Function codePointLength

    • Calculate the character length of a string (accounting for UTF-16 surrogates).

      Parameters

      • str: string

      Returns number