Returns whether the given string ends with the suffix, case-insensitive
Optional
the source string to check
the target string to compare
whether the given string ends with the suffix, case-insensitive
endsWithIgnoreCase('foobar', 'BAR'); // trueendsWithIgnoreCase('hello', 'BAR'); // false Copy
endsWithIgnoreCase('foobar', 'BAR'); // trueendsWithIgnoreCase('hello', 'BAR'); // false
Returns whether the given string ends with the suffix, case-insensitive