platform-bible-utils
    Preparing search index...

    Function at

    • This function mirrors the at function from the JavaScript Standard String object. It operates on grapheme clusters instead of UTF-16 code units.

      Finds the grapheme cluster at the given index.

      Parameters

      • string: string

        String to index

      • index: number

        Position of the grapheme cluster to return. Negative values count back from the end

      Returns undefined | string

      The grapheme cluster at the given index, or undefined if the index is out of bounds