@smooai/utils
Version:
A collection of shared utilities and tools used across SmooAI projects. This package provides common functionality to standardize and simplify development across all SmooAI repositories.
27 lines (26 loc) • 769 B
JavaScript
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
require("../chunk-CoPdw6nB.cjs");
//#region src/collections/CaseInsensitiveSet.ts
var CaseInsensitiveSet = class extends Set {
constructor(values) {
values ? super(Array.from(values, (key) => {
if (typeof key === "string") key = key.toLowerCase();
return key;
})) : super();
}
add(key) {
if (typeof key === "string") key = key.toLowerCase();
return super.add(key);
}
has(key) {
if (typeof key === "string") key = key.toLowerCase();
return super.has(key);
}
delete(key) {
if (typeof key === "string") key = key.toLowerCase();
return super.delete(key);
}
};
//#endregion
exports.CaseInsensitiveSet = CaseInsensitiveSet;
//# sourceMappingURL=CaseInsensitiveSet.cjs.map