Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/retraigo/bettermap
An extension of the Map class with more Array-like features.
https://github.com/retraigo/bettermap
deno map typescript
Last synced: 2 months ago
JSON representation
An extension of the Map class with more Array-like features.
- Host: GitHub
- URL: https://github.com/retraigo/bettermap
- Owner: retraigo
- License: mit
- Created: 2022-05-28T06:36:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-06T12:20:29.000Z (about 2 years ago)
- Last Synced: 2024-10-01T15:20:10.589Z (2 months ago)
- Topics: deno, map, typescript
- Language: TypeScript
- Homepage:
- Size: 91.8 KB
- Stars: 15
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-deno - bettermap - A TypeScript extension of the JavaScript Map with Array-like features. (Modules / Utils)
README
# 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](https://github.com/tc39/proposal-policy-map-set)
**[Click here for docs](https://doc.deno.land/https://deno.land/x/bettermap/mod.ts)**
## Installation
There ain't no installation. It's a Deno module.
## Usage
```ts
import { BetterMap } from "https://deno.land/x/bettermap/mod.ts";const b = new BetterMap();
```# Support
Do open a new issue or pr regarding bugs or improvements.
[Join our Discord server!](https://discord.gg/A69vvdK)