UNPKG

@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.

25 lines (24 loc) 644 B
//#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 export { CaseInsensitiveSet }; //# sourceMappingURL=CaseInsensitiveSet.mjs.map