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) 770 B
import "../chunk-LZOMFHX3.mjs"; // 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); } }; export { CaseInsensitiveSet }; //# sourceMappingURL=CaseInsensitiveSet.mjs.map