@yookue/ts-lang-utils
Version:
Common lang utilities for typescript
4 lines • 380 B
JavaScript
export function includesIgnoreCase(text, comparison) {
var _text$toUpperCase;
return text === comparison || !!text && !!comparison && (text === null || text === void 0 || (_text$toUpperCase = text.toUpperCase()) === null || _text$toUpperCase === void 0 ? void 0 : _text$toUpperCase.includes(comparison === null || comparison === void 0 ? void 0 : comparison.toUpperCase()));
}