• This function mirrors the codePointAt function from the JavaScript Standard String object. It handles Unicode code points instead of UTF-16 character codes.

    Returns a non-negative integer that is the Unicode code point value of the character starting at the given index.

    Parameters

    • string: string

      String to index

    • index: number

      Position of the string character to be returned, in the range of 0 to length(string)-1

    Returns undefined | number

    Non-negative integer representing the code point value of the character at the given index, or undefined if there is no element at that position