Tweakr
    Preparing search index...

    Function includes

    • Checks if a string contains a given substring.

      Parameters

      • str: string

        The string to search within.

      • search: string

        The substring to search for.

      • Optionaloptions: { caseInsensitive?: boolean }

      Returns boolean

      true if search is found within str, otherwise false.

      1.1.0

      includes("Hello World", "World"); // true
      includes("Hello World", "world"); // false