A high-performance, immutable map structure implementation for TypeScript.
typescriptdata-structuresimmutablemap
typescript 2 0 0 3 files
DiscussionsView all
No discussions yet
README.md
Trench Map
A high-performance, immutable map structure implementation for TypeScript.
Usage
import { TrenchMap } from "trench-map";
const map = new TrenchMap<string, number>();
const newMap = map.set("key", 1);
console.log(map.get("key")); // undefined
console.log(newMap.get("key")); // 1