Get the UTF-8 byte length of a string.
-
Updated
Mar 6, 2026 - JavaScript
URL: http://github.com/topics/ucs-2
="stylesheet" href="https://github.githubassets.com/assets/primer-9e07ff8eaaaff3a3.css" />Get the UTF-8 byte length of a string.
Like `string.slice()` but bytewise.
A JavaScript library for mutilate strings.
Add a description, image, and links to the ucs-2 topic page so that developers can more easily learn about it.
To associate your repository with the ucs-2 topic, visit your repo's landing page and select "manage topics."