platform-bible-utils
    Preparing search index...

    Function endsWith

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

      Determines whether a string ends with the characters of another string.

      Parameters

      • string: string

        String to search through

      • searchString: string

        Characters to search for at the end of the string

      • OptionalendPosition: number

        End position where searchString is expected to be found. Default is stringLength(string)

      Returns boolean

      True if it ends with searchString, false if it does not