codePointAt()

Gets the code point at a specific position in the given string.

This function is valid in v2.23.0 to v2.24.3. This function has been downloaded 33 times.

Parameters

{string} string
The string from which to pull the code point.
{number} position
The position of the code point that you want to identify. If the specified number is negative then the position will be counted from the end of the string.

Returns

{number}
The code point at the specified position in the given string.

Required Function

This function directly requires the following function which is included automatically:

  • toCodePoints()
    Gets the sequence of code points that make up a specified string.

Requiring Function

This function is directly required by the following function:

  • toCodePoints()
    Gets the sequence of code points that make up a specified string.