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
David Hsing
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