A HashMap is a data structure that implements an associative array, mapping keys to values using a hash function for efficient retrieval.
import { HashMap } from "collection-kit";
import { HashMap } from "collection-kit";
const map = new HashMap();
map.put("name", "John");
map.put("age", 30);
map.put("city", "New York");
console.log("Name:", map.get("name")); // John
console.log("Has age:", map.containsKey("age")); // true
map.remove("city");