Given a JS string s and an index idx of a character in it, compute the corresponding byte offset of the character in the UTF-8 encoding of the string.
s
idx
Generated using TypeDoc
Given a JS string
s
and an indexidx
of a character in it, compute the corresponding byte offset of the character in the UTF-8 encoding of the string.