(str1: string, str2: string)
| 1 | export function caseInsensitiveStringCompare(str1: string, str2: string) { |
| 2 | return str1.localeCompare(str2, undefined, { |
| 3 | sensitivity: 'base', |
| 4 | numeric: true, |
| 5 | }); |
| 6 | } |
| 7 | |
| 8 | export function caseInsensitiveStringEqual(str1: string, str2: string) { |
| 9 | return caseInsensitiveStringCompare(str1, str2) === 0; |
no outgoing calls
no test coverage detected