Home

Awesome

BetterMap

An extension of the Map class with more Array-like features.

NOTE

Maps are not ordered data structures. JavaScript Maps store elements in the order of insertion. Any sorting / indexing method implemented involves converting the Map into an Array or Iterator to do necessary operations.

Related: Policy Maps and Sets for JavaScript

Click here for docs

Installation

There ain't no installation. It's a Deno module.

Usage

import { BetterMap } from "https://deno.land/x/bettermap/mod.ts";

const b = new BetterMap<string, unknown>();

Support

Do open a new issue or pr regarding bugs or improvements.

Join our Discord server!