Haystack to search within (normalized to NFC before comparison).
Needle to find; empty string always matches.
Locale for accent- and case-insensitive matching via Intl.Collator. Defaults to "en".
true when substring appears in string per collator rules; false otherwise.
Checks whether a string contains another, ignoring diacritics and case.
Uses
Intl.Collatorfor accent- and case-insensitive matching. An emptysubstringalways matches.