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

    Performs a case-sensitive search to determine if searchString is found in string.

    Parameters

    • string: string

      String to search through

    • searchString: string

      String to search for

    • position: number = 0

      Position within the string to start searching for searchString. Default is 0

    Returns boolean

    True if search string is found, false if it is not