limitUTF8Length | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function limitUTF8Length

    • Truncate the string so it's at most len UTF-8 bytes long

      Parameters

      • str: string
      • len: number

      Returns string