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.

37 lines (36 loc) 796 B
import "../chunk-LZOMFHX3.mjs"; // 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); } }; export { CaseInsensitiveMap }; //# sourceMappingURL=CaseInsensitiveMap.mjs.map