Checks if a string ends with the given search string, ignoring case.
The string to check.
The string to test at the end of str.
str
true if str ends with search (case-insensitive), otherwise false.
true
search
false
1.1.0
endsWithIgnoreCase("Hello World", "world"); // trueendsWithIgnoreCase("Hello World", "WORLD"); // trueendsWithIgnoreCase("Hello", "lo"); // trueendsWithIgnoreCase("Hello", "LO"); // true Copy
endsWithIgnoreCase("Hello World", "world"); // trueendsWithIgnoreCase("Hello World", "WORLD"); // trueendsWithIgnoreCase("Hello", "lo"); // trueendsWithIgnoreCase("Hello", "LO"); // true
Checks if a string ends with the given search string, ignoring case.