platform-bible-utils
    Preparing search index...

    Function endsWith

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

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

      Parameters

      • string: string

        String to search through

      • searchString: string

        Characters to search for at the end of the string

      • endPosition: number = ...

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

      Returns boolean

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