platform-bible-utils
    Preparing search index...

    Function charAt

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

      Returns a new string consisting of the single unicode code point 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 string

      New string consisting of the Unicode code point located at the specified offset, empty string if index is out of bounds