Skip to content

Function: caseInsensitiveIncludes() ​

ts
function caseInsensitiveIncludes(haystack, needle): boolean;

Case-insensitive string inclusion check. 大小写不敏感包含判断。

Parameters ​

ParameterType
haystackstring
needlestring

Returns ​

boolean

Example ​

ts
caseInsensitiveIncludes('Hello', 'ell') // => true

Since ​

1.3.0

Released under the MIT License.