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

x/docxml/src/classes/NumberMap.ts>NumberMap

TypeScript (component) library for building and parsing a DOCX file
Latest
class NumberMap
extends Map<number, Generic>
import { NumberMap } from "https://deno.land/x/docxml@5.15.3/src/classes/NumberMap.ts";

A special kind of map that makes it easy to store items by a number, automatically ensuring that these identifiers increment and don't collide.

Constructors

new
NumberMap(start?)

Methods

add(data: Generic): number

Add new data to the map, and return the new unique key.

array(): Array<Generic>

Get all values in an array.