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) 670 B
//#region src/collections/CaseInsensitiveMap.ts var CaseInsensitiveMap = class extends Map { constructor(values) { values ? super(Array.from(values, ([key, value]) => { if (typeof key === "string") key = key.toLowerCase(); return [key, value]; })) : super(); } set(key, value) { if (typeof key === "string") key = key.toLowerCase(); return super.set(key, value); } get(key) { if (typeof key === "string") key = key.toLowerCase(); return super.get(key); } has(key) { if (typeof key === "string") key = key.toLowerCase(); return super.has(key); } }; //#endregion export { CaseInsensitiveMap }; //# sourceMappingURL=CaseInsensitiveMap.mjs.map