• Returns whether a string includes a certain string.

    Parameters

    • str: string
    • searchElement: string

      The element to search for.

    • Optional fromIndex: number

      The position in this string at which to begin searching for searchElement.

    Returns boolean