Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/esm/collections.js>CiMap

A JavaScript extension package for building strong and modern applications.
Latest
class CiMap
extends Map
import { CiMap } from "https://deno.land/x/ayonli_jsext@v0.9.72/esm/collections.js";

Case-insensitive map, keys are case-insensitive.

Examples

Example 1

import { CiMap } from "@ayonli/jsext/collections";

const map = new CiMap<string, string>();

map.set("foo", "hello");
map.set("bar", "world");

console.log(map.get("FOO")); // hello
console.log(map.has("BAR")); // true

Constructors

new
CiMap(iterable?)

Properties

readonly
[Symbol.toStringTag]

Methods

delete(key)
forEach(callbackfn, thisArg)
get(key)
has(key)
set(key, value)