This function mirrors the codePointAt function from the JavaScript Standard String object. It
operates on grapheme clusters instead of UTF-16 code units.
Returns the Unicode code point value of the grapheme cluster at the given index. For a cluster
built from several code points, this is the first code point only.
Parameters
string: string
String to index
index: number
Position of the grapheme cluster to read, in the range 0 to stringLength(string)-1
Returns undefined|number
The code point value, or undefined if the index is out of bounds
This function mirrors the
codePointAtfunction from the JavaScript Standard String object. It operates on grapheme clusters instead of UTF-16 code units.Returns the Unicode code point value of the grapheme cluster at the given index. For a cluster built from several code points, this is the first code point only.