Tweakr
    Preparing search index...

    Function endsWithIgnoreCase

    • Checks if a string ends with the given search string, ignoring case.

      Parameters

      • str: string

        The string to check.

      • search: string

        The string to test at the end of str.

      Returns boolean

      true if str ends with search (case-insensitive), otherwise false.

      1.1.0

      endsWithIgnoreCase("Hello World", "world"); // true
      endsWithIgnoreCase("Hello World", "WORLD"); // true
      endsWithIgnoreCase("Hello", "lo"); // true
      endsWithIgnoreCase("Hello", "LO"); // true