Checks if a string starts with the given search string, ignoring case.
The string to check.
The search string to match at the start of the string.
true if the string starts with the search string (case-insensitive), otherwise false.
true
false
1.1.0
startsWithIgnoreCase("Hello World", "hello"); // truestartsWithIgnoreCase("TypeScript", "TS"); // truestartsWithIgnoreCase("JavaScript", "script"); // false Copy
startsWithIgnoreCase("Hello World", "hello"); // truestartsWithIgnoreCase("TypeScript", "TS"); // truestartsWithIgnoreCase("JavaScript", "script"); // false
Checks if a string starts with the given search string, ignoring case.