@yookue/ts-lang-utils
Version:
Common lang utilities for typescript
9 lines • 317 B
JavaScript
export function equals(text, comparison) {
if (text === comparison) {
return true;
}
if (!text || !comparison || (text === null || text === void 0 ? void 0 : text.length) !== (comparison === null || comparison === void 0 ? void 0 : comparison.length)) {
return false;
}
return text === comparison;
}