Documentation
    Preparing search index...

    Function utf8ByteLength

    • UTF-8 byte length of a string without TextEncoder.

      Parameters

      • text: string

        Any string.

      Returns number

      Byte count.

      utf8ByteLength('é') === 2;